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§
Sourcefn rel(&self) -> String
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).
Sourcefn media_type(&self) -> Option<String>
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).