Struct atom_syndication::LinkBuilder
[−]
[src]
pub struct LinkBuilder { /* fields omitted */ }
Builder for Link
.
Methods
impl LinkBuilder
[src]
fn href<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The URI of the referenced resource.
fn rel<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The link relationship type.
fn hreflang<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The language of the resource.
fn mime_type<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The MIME type of the resource.
fn title<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
Human-readable information about the link.
fn length<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The length of the resource, in bytes.
fn build(&self) -> Result<Link, String>
Trait Implementations
impl Default for LinkBuilder
[src]
fn default() -> LinkBuilder
Returns the "default value" for a type. Read more
impl Clone for LinkBuilder
[src]
fn clone(&self) -> LinkBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more