pub struct Options { /* private fields */ }Expand description
Email address parsing options.
Implementations§
Source§impl Options
impl Options
Sourcepub const fn local(&self) -> LocalOptions
pub const fn local(&self) -> LocalOptions
Returns local-part parsing options.
Sourcepub const fn set_local(&mut self, local: LocalOptions) -> &mut Self
pub const fn set_local(&mut self, local: LocalOptions) -> &mut Self
Sets local-part parsing options.
Sourcepub const fn with_local(self, local: LocalOptions) -> Self
pub const fn with_local(self, local: LocalOptions) -> Self
Returns these options with local-part parsing options changed.
Sourcepub const fn domain(&self) -> DomainOptions
pub const fn domain(&self) -> DomainOptions
Returns domain-part parsing options.
Sourcepub const fn set_domain(&mut self, domain: DomainOptions) -> &mut Self
pub const fn set_domain(&mut self, domain: DomainOptions) -> &mut Self
Sets domain-part parsing options.
Sourcepub const fn with_domain(self, domain: DomainOptions) -> Self
pub const fn with_domain(self, domain: DomainOptions) -> Self
Returns these options with domain-part parsing options changed.
Sourcepub const fn set_limits(&mut self, limits: Limits) -> &mut Self
pub const fn set_limits(&mut self, limits: Limits) -> &mut Self
Sets parsing limits.
Sourcepub const fn with_limits(self, limits: Limits) -> Self
pub const fn with_limits(self, limits: Limits) -> Self
Returns these options with parsing limits changed.
Trait Implementations§
Source§impl Args for Options
impl Args for Options
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreimpl Copy for Options
Source§impl<'de> Deserialize<'de> for Options
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Options
Available on crate feature
serde only.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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Options
Source§impl FromArgMatches for Options
impl FromArgMatches for Options
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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 more