#[non_exhaustive]pub struct EmailPreferences {
pub enable_failure_email: bool,
/* private fields */
}Expand description
Represents preferences for sending email notifications for transfer run events.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_failure_email: boolIf true, email notifications will be sent on transfer run failures.
Implementations§
Source§impl EmailPreferences
impl EmailPreferences
pub fn new() -> Self
Sourcepub fn set_enable_failure_email<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_failure_email<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_failure_email.
Trait Implementations§
Source§impl Clone for EmailPreferences
impl Clone for EmailPreferences
Source§fn clone(&self) -> EmailPreferences
fn clone(&self) -> EmailPreferences
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmailPreferences
impl Debug for EmailPreferences
Source§impl Default for EmailPreferences
impl Default for EmailPreferences
Source§fn default() -> EmailPreferences
fn default() -> EmailPreferences
Returns the “default value” for a type. Read more
Source§impl Message for EmailPreferences
impl Message for EmailPreferences
Source§impl PartialEq for EmailPreferences
impl PartialEq for EmailPreferences
impl StructuralPartialEq for EmailPreferences
Auto Trait Implementations§
impl Freeze for EmailPreferences
impl RefUnwindSafe for EmailPreferences
impl Send for EmailPreferences
impl Sync for EmailPreferences
impl Unpin for EmailPreferences
impl UnwindSafe for EmailPreferences
Blanket Implementations§
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
Mutably borrows from an owned value. Read more