Struct earth::feed::Link [] [src]

pub struct Link {
    pub uri: String,
    pub relation: String,
    pub mimetype: Option<String>,
    pub language: Option<String>,
    pub title: Option<String>,
    pub byte_size: Option<u64>,
}

Link element defined in RFC 4287 (section 4.2.7).

RFC: https://tools.ietf.org/html/rfc4287#section-4.2.7.

Fields

The link's required URI. It corresponds to href attribute of RFC 4287 (section 4.2.7.1).

The relation type of the link. It corresponds to rel attribute of RFC 4287 (section 4.2.7.2).

See also

  • Existing rel values --- Microformats Wiki

    This page contains tables of known HTML rel values from specifications, formats, proposals, brainstorms, and non-trivial POSH usage in the wild. In addition, dropped and rejected values are listed at the end for comprehensiveness.

The optional hint for the MIME media type of the linked content. It corresponds to type attribute of RFC 4287 (section 4.2.7.3).

The language of the linked content. It corresponds to hreflang attribute of RFC 4287 (section 4.2.7.4).

The title of the linked resource. It corresponds to title attribute of RFC 4287 (section 4.2.7.5).

The optional hint for the length of the linked content in octets. It corresponds to length attribute of RFC 4287 (section 4.2.7.6) .

Methods

impl Link
[src]

Whether its mimetype is HTML (or XHTML).

Trait Implementations

impl Clone for Link
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Link
[src]

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

This method tests for !=.

impl Eq for Link
[src]

impl Hash for Link
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Link
[src]

Formats the value using the given formatter.

impl Default for Link
[src]

Returns the "default value" for a type. Read more

impl Display for Link
[src]

Formats the value using the given formatter. Read more

impl FromSchemaReader for Link
[src]