Struct hal::link::Link [-] [+] [src]

pub struct Link {
    // some fields omitted
}

A Hal Link object

Methods

impl Link

fn new<S: Into<String>>(href: S) -> Link

fn from_json(json: &Json) -> Link

Convert a json object into a Link

fn templated(&mut self, is_template: bool) -> &mut Link

fn media_type<S>(&mut self, media_type: S) -> &mut Link where S: Into<String>

fn deprecation<S>(&mut self, deprecation: S) -> &mut Link where S: Into<String>

fn name<S>(&mut self, name: S) -> &mut Link where S: Into<String>

fn title<S>(&mut self, title: S) -> &mut Link where S: Into<String>

fn profile<S>(&mut self, profile: S) -> &mut Link where S: Into<String>

fn hreflang<S>(&mut self, hreflang: S) -> &mut Link where S: Into<String>

Trait Implementations

impl ToJson for Link

fn to_json(&self) -> Json

Derived Implementations

impl Debug for Link

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Link

fn eq(&self, __arg_0: &Link) -> bool

fn ne(&self, __arg_0: &Link) -> bool

impl Eq for Link

impl Clone for Link

fn clone(&self) -> Link

fn clone_from(&mut self, source: &Self)