[go: up one dir, main page]

Struct hal::Link [] [src]

pub struct Link {
    // some fields omitted
}

Methods

impl Link
[src]

fn new(href: &str) -> Link

fn from_json(json: &Json) -> Link

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

fn media_type(self, media_type: &str) -> Link

fn deprecation(self, deprecation: &str) -> Link

fn name(self, name: &str) -> Link

fn title(self, title: &str) -> Link

fn profile(self, profile: &str) -> Link

fn hreflang(self, hreflang: &str) -> Link

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