Trait Link

Source
pub(super) trait Link {
    // Required methods
    fn rel(&self) -> String;
    fn media_type(&self) -> Option<String>;
    fn href(&self) -> Option<String>;
    fn template(&self) -> Option<String>;
}
Expand description

Represent a link associated with a given resource.

Required Methods§

Source

fn rel(&self) -> String

The value of the rel member is a string that is either a URI or a registered relation type (see RFC 5988).

Source

fn media_type(&self) -> Option<String>

The value of the media_type member is a string that indicates the media type of the target resource (see RFC 6838).

Source

fn href(&self) -> Option<String>

The value of the href member is a string that contains a URI pointing to the target resource.

Source

fn template(&self) -> Option<String>

The value of the href member is a string that contains a URI pointing to the target resource.

Implementors§