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

pub struct Link {
    // some fields omitted
}

A Hal Link object

Methods

impl Link
[src]

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 Debug for Link
[src]

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

Formats the value using the given formatter.

impl PartialEq for Link
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Eq for Link
[src]

impl Clone for Link
[src]

fn clone(&self) -> Link

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

impl ToJson for Link
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON