pub struct ShareTarget<'a> { /* private fields */ }Implementations§
Sourcepub fn builder(
action: impl Into<Cow<'a, str>>,
method: impl Into<Cow<'a, str>>,
enctype: impl Into<Cow<'a, str>>,
) -> ShareTargetBuilder<'a>
pub fn builder( action: impl Into<Cow<'a, str>>, method: impl Into<Cow<'a, str>>, enctype: impl Into<Cow<'a, str>>, ) -> ShareTargetBuilder<'a>
Creates a builder for this type with the required parameters:
action:method:enctype:
pub fn action(&self) -> &str
pub fn method(&self) -> &str
pub fn enctype(&self) -> &str
pub fn text(&self) -> Option<&str>
pub fn url(&self) -> Option<&str>
pub fn files(&self) -> Option<&[FileFilter<'a>]>
Trait Implementations§
Source§fn clone(&self) -> ShareTarget<'a>
fn clone(&self) -> ShareTarget<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> ShareTarget<'a>
fn default() -> ShareTarget<'a>
Returns the “default value” for a type. Read more
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
Auto Trait Implementations§
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