Struct ashpd::desktop::email::EmailRequest
source · pub struct EmailRequest { /* private fields */ }
Expand description
A builder-pattern type to compose an email.
Implementations§
source§impl EmailRequest
impl EmailRequest
sourcepub fn identifier(self, identifier: impl Into<Option<WindowIdentifier>>) -> Self
pub fn identifier(self, identifier: impl Into<Option<WindowIdentifier>>) -> Self
Sets a window identifier.
sourcepub fn address<'a>(self, address: impl Into<Option<&'a str>>) -> Self
pub fn address<'a>(self, address: impl Into<Option<&'a str>>) -> Self
Sets the email address to send the email to.
sourcepub fn addresses<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>(
self,
addresses: impl Into<Option<P>>
) -> Self
pub fn addresses<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>( self, addresses: impl Into<Option<P>> ) -> Self
Sets a list of email addresses to send the email to.
sourcepub fn bcc<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>(
self,
bcc: impl Into<Option<P>>
) -> Self
pub fn bcc<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>( self, bcc: impl Into<Option<P>> ) -> Self
Sets a list of email addresses to BCC.
sourcepub fn cc<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>(
self,
cc: impl Into<Option<P>>
) -> Self
pub fn cc<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>( self, cc: impl Into<Option<P>> ) -> Self
Sets a list of email addresses to CC.
sourcepub fn add_attachment(&mut self, attachment: OwnedFd)
pub fn add_attachment(&mut self, attachment: OwnedFd)
A different variant of Self::attach
.
Trait Implementations§
source§impl Debug for EmailRequest
impl Debug for EmailRequest
source§impl Default for EmailRequest
impl Default for EmailRequest
source§fn default() -> EmailRequest
fn default() -> EmailRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmailRequest
impl !RefUnwindSafe for EmailRequest
impl Send for EmailRequest
impl Sync for EmailRequest
impl Unpin for EmailRequest
impl !UnwindSafe for EmailRequest
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.