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
A resolvable URL reference to a resource.
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
A label that indicates the nature of a resource, as a data serialization or format.
Sourcepub fn rel<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn rel<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Describes the type of relationship provided by the link’s hypertext reference. This can be an indicator of the link’s purpose.
Sourcepub fn resource_fragment<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn resource_fragment<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
In case where the href points to a back-matter/resource, this value will indicate the URI fragment to append to any rlink associated with the resource. This value MUST be URI encoded.
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