pub struct LinkBuilder { /* private fields */ }
Expand description
Builder for Link
.
Implementations§
Source§impl LinkBuilder
impl LinkBuilder
Sourcepub fn href<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn href<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The URI of the referenced resource.
Sourcepub fn rel<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn rel<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The link relationship type.
Sourcepub fn hreflang<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn hreflang<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
The language of the resource.
Sourcepub fn mime_type<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn mime_type<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
The MIME type of the resource.
Trait Implementations§
Source§impl Clone for LinkBuilder
impl Clone for LinkBuilder
Source§fn clone(&self) -> LinkBuilder
fn clone(&self) -> LinkBuilder
Returns a copy 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