Remove unused code
This commit is contained in:
@@ -16,19 +16,6 @@ use url::Url;
|
||||
|
||||
use super::{ClientSecret, ClientSecretRaw, ConfigurationSection};
|
||||
|
||||
#[derive(JsonSchema, Serialize, Deserialize, Clone, Debug)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum JwksOrJwksUri {
|
||||
Jwks(PublicJsonWebKeySet),
|
||||
JwksUri(Url),
|
||||
}
|
||||
|
||||
impl From<PublicJsonWebKeySet> for JwksOrJwksUri {
|
||||
fn from(jwks: PublicJsonWebKeySet) -> Self {
|
||||
Self::Jwks(jwks)
|
||||
}
|
||||
}
|
||||
|
||||
/// Authentication method used by clients
|
||||
#[derive(JsonSchema, Serialize, Deserialize, Copy, Clone, Debug)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
|
||||
@@ -14,15 +14,6 @@ use serde::{Deserialize, Serialize, de::Error};
|
||||
|
||||
use super::ConfigurationSection;
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
|
||||
pub struct Credentials {
|
||||
/// Username for use to authenticate when connecting to the SMTP server
|
||||
pub username: String,
|
||||
|
||||
/// Password for use to authenticate when connecting to the SMTP server
|
||||
pub password: String,
|
||||
}
|
||||
|
||||
/// Encryption mode to use
|
||||
#[derive(Clone, Copy, Debug, Serialize, Deserialize, JsonSchema)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
|
||||
Reference in New Issue
Block a user