Struct MailtoQuery
pub struct MailtoQuery { /* private fields */ }Expand description
Query component for a mailto: URI.
Implementations§
§impl MailtoQuery
impl MailtoQuery
pub const fn new() -> MailtoQuery
pub const fn new() -> MailtoQuery
Creates an empty query.
pub fn with_field(
self,
field: MailtoField,
value: impl AsRef<str>,
) -> Result<MailtoQuery, MailtoError>
pub fn with_field( self, field: MailtoField, value: impl AsRef<str>, ) -> Result<MailtoQuery, MailtoError>
Adds a query field and returns the updated query.
pub fn push(
&mut self,
field: MailtoField,
value: impl AsRef<str>,
) -> Result<(), MailtoError>
pub fn push( &mut self, field: MailtoField, value: impl AsRef<str>, ) -> Result<(), MailtoError>
Appends a query field.
pub fn fields(&self) -> &[(MailtoField, String)]
pub fn fields(&self) -> &[(MailtoField, String)]
Returns query fields.
Trait Implementations§
§impl Clone for MailtoQuery
impl Clone for MailtoQuery
§fn clone(&self) -> MailtoQuery
fn clone(&self) -> MailtoQuery
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 more§impl Debug for MailtoQuery
impl Debug for MailtoQuery
§impl Default for MailtoQuery
impl Default for MailtoQuery
§fn default() -> MailtoQuery
fn default() -> MailtoQuery
Returns the “default value” for a type. Read more
§impl Display for MailtoQuery
impl Display for MailtoQuery
§impl PartialEq for MailtoQuery
impl PartialEq for MailtoQuery
impl Eq for MailtoQuery
impl StructuralPartialEq for MailtoQuery
Auto Trait Implementations§
impl Freeze for MailtoQuery
impl RefUnwindSafe for MailtoQuery
impl Send for MailtoQuery
impl Sync for MailtoQuery
impl Unpin for MailtoQuery
impl UnsafeUnpin for MailtoQuery
impl UnwindSafe for MailtoQuery
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