pub struct LinkBuilder { /* private fields */ }Expand description
Builder for Link.
Implementations§
Source§impl LinkBuilder
impl LinkBuilder
Sourcepub fn crossorigin(&mut self, value: CrossOrigin) -> &mut Self
pub fn crossorigin(&mut self, value: CrossOrigin) -> &mut Self
Specifies how the element handles cross-origin requests
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 location of the linked document
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 text in 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 on what device the linked document will be displayed
Sourcepub fn referrer_policy(&mut self, value: ReferrerPolicy) -> &mut Self
pub fn referrer_policy(&mut self, value: ReferrerPolicy) -> &mut Self
Specifies which referrer to use when fetching the resource
Sourcepub fn rel(&mut self, value: Relationship) -> &mut Self
pub fn rel(&mut self, value: Relationship) -> &mut Self
Specifies the relationship between the current document and the linked document
Sourcepub fn sizes<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn sizes<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies the size of the linked resource. Only for rel=“icon”
Sourcepub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Defines a preferred or an alternate stylesheet
Sourcepub fn media_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn media_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies the media type of the linked document
Trait Implementations§
Source§impl Clone for LinkBuilder
impl Clone for LinkBuilder
Source§fn clone(&self) -> LinkBuilder
fn clone(&self) -> LinkBuilder
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 LinkBuilder
impl RefUnwindSafe for LinkBuilder
impl Send for LinkBuilder
impl Sync for LinkBuilder
impl Unpin for LinkBuilder
impl UnwindSafe for LinkBuilder
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