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
[src]
The URI of the referenced resource.
fn rel<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
The link relationship type.
fn hreflang<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
The language of the resource.
fn mime_type<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
The MIME type of the resource.
fn title<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
Human-readable information about the link.
fn length<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
The length of the resource, in bytes.
fn build(&self) -> Result<Link, String>
[src]
Trait Implementations
impl Default for LinkBuilder
[src]
fn default() -> LinkBuilder
[src]
Returns the "default value" for a type. Read more
impl Clone for LinkBuilder
[src]
fn clone(&self) -> LinkBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more