pub struct MailSenderSpec {
pub relay: String,
pub credentials_secret: MailSenderCredentialsSecret,
pub from_address: String,
pub reply_to_address: Option<String>,
pub queue_poll_interval_seconds: Option<i32>,
pub connect_timeout_seconds: Option<i32>,
pub image: Option<String>,
pub resources: Option<ResourceRequirements>,
pub node_selector: Option<BTreeMap<String, String>>,
pub affinity: Option<Affinity>,
pub tolerations: Option<Vec<Toleration>>,
}Fields§
§relay: StringSMTP relay URL for sending emails.
Must be a valid SMTP URL: smtp://hostname:port or smtps://hostname (default port 465).
Example: smtps://smtp.example.com or smtp://smtp.example.com:587
credentials_secret: MailSenderCredentialsSecretKubernetes secret containing SMTP credentials (username and password). The secret must have keys for username and password (defaults to “username” and “password”).
from_address: StringEmail address used as the “From” address in sent emails.
Example: kanidm@example.com
reply_to_address: Option<String>Optional email address for the “Reply-To” header.
Example: admin@example.com
queue_poll_interval_seconds: Option<i32>Optional queue polling interval in seconds. How often the mail sender checks Kanidm’s message queue. Defaults to 5 seconds.
connect_timeout_seconds: Option<i32>Optional SMTP connection timeout in seconds. Defaults to 15 seconds.
image: Option<String>Optional custom image for the mail sender deployment.
Defaults to kanidm/tools:<version> matching the Kanidm server image version.
resources: Option<ResourceRequirements>Optional resource requirements for the mail sender deployment.
node_selector: Option<BTreeMap<String, String>>Optional node selector for the mail sender deployment.
affinity: Option<Affinity>Optional affinity rules for the mail sender deployment.
tolerations: Option<Vec<Toleration>>Optional tolerations for the mail sender deployment.
Trait Implementations§
Source§impl Clone for MailSenderSpec
impl Clone for MailSenderSpec
Source§fn clone(&self) -> MailSenderSpec
fn clone(&self) -> MailSenderSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MailSenderSpec
impl Debug for MailSenderSpec
Source§impl Default for MailSenderSpec
impl Default for MailSenderSpec
Source§fn default() -> MailSenderSpec
fn default() -> MailSenderSpec
Source§impl<'de> Deserialize<'de> for MailSenderSpec
impl<'de> Deserialize<'de> for MailSenderSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for MailSenderSpec
impl JsonSchema for MailSenderSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for MailSenderSpec
impl PartialEq for MailSenderSpec
Source§fn eq(&self, other: &MailSenderSpec) -> bool
fn eq(&self, other: &MailSenderSpec) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for MailSenderSpec
impl Serialize for MailSenderSpec
impl StructuralPartialEq for MailSenderSpec
Auto Trait Implementations§
impl Freeze for MailSenderSpec
impl RefUnwindSafe for MailSenderSpec
impl Send for MailSenderSpec
impl Sync for MailSenderSpec
impl Unpin for MailSenderSpec
impl UnsafeUnpin for MailSenderSpec
impl UnwindSafe for MailSenderSpec
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request