Struct atom_syndication::LinkBuilder
source · 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 more