pub struct MailtoUri { /* private fields */ }Expand description
Complete mailto: URI primitive.
Implementations§
Source§impl MailtoUri
impl MailtoUri
Sourcepub fn with_address(self, address: MailtoAddress) -> Self
pub fn with_address(self, address: MailtoAddress) -> Self
Adds an address and returns the updated URI.
Sourcepub fn with_query(self, query: MailtoQuery) -> Self
pub fn with_query(self, query: MailtoQuery) -> Self
Sets the query.
Sourcepub fn addresses(&self) -> &[MailtoAddress]
pub fn addresses(&self) -> &[MailtoAddress]
Returns addresses.
Sourcepub const fn query(&self) -> &MailtoQuery
pub const fn query(&self) -> &MailtoQuery
Returns the query.
Trait Implementations§
impl Eq for MailtoUri
impl StructuralPartialEq for MailtoUri
Auto Trait Implementations§
impl Freeze for MailtoUri
impl RefUnwindSafe for MailtoUri
impl Send for MailtoUri
impl Sync for MailtoUri
impl Unpin for MailtoUri
impl UnsafeUnpin for MailtoUri
impl UnwindSafe for MailtoUri
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