pub struct HyperlinkBuilder { /* private fields */ }Expand description
Builder for Hyperlink.
Implementations§
Source§impl HyperlinkBuilder
impl HyperlinkBuilder
Sourcepub fn download<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn download<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies that the target will be downloaded when a user clicks on the hyperlink
Sourcepub fn href<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn href<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies the URL of the page the link goes to
Sourcepub fn href_lang<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn href_lang<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies the language of the linked document
Sourcepub fn media<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn media<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies what media/device the linked document is optimized for
Sourcepub fn ping<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn ping<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies a space-separated list of URLs to which, when the link is followed, post requests with the body ping will be sent by the browser (in the background). Typically used for tracking.
Sourcepub fn referrer_policy<VALUE: Into<ReferrerPolicy>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn referrer_policy<VALUE: Into<ReferrerPolicy>>( &mut self, value: VALUE, ) -> &mut Self
Specifies which referrer information to send with the link
Sourcepub fn rel(&mut self, value: Option<Vec<Relationship>>) -> &mut Self
pub fn rel(&mut self, value: Option<Vec<Relationship>>) -> &mut Self
Specifies the relationship between the current document and the linked document
Sourcepub fn target(&mut self, value: Option<Target>) -> &mut Self
pub fn target(&mut self, value: Option<Target>) -> &mut Self
Specifies where to open the linked document
Trait Implementations§
Source§impl Clone for HyperlinkBuilder
impl Clone for HyperlinkBuilder
Source§fn clone(&self) -> HyperlinkBuilder
fn clone(&self) -> HyperlinkBuilder
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 moreAuto Trait Implementations§
impl Freeze for HyperlinkBuilder
impl !RefUnwindSafe for HyperlinkBuilder
impl !Send for HyperlinkBuilder
impl !Sync for HyperlinkBuilder
impl Unpin for HyperlinkBuilder
impl !UnwindSafe for HyperlinkBuilder
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