pub struct Link {
pub href: Option<Iri>,
pub rels: Vec<String>,
pub media_type: Option<String>,
pub digest_multibase: Option<String>,
pub name: Text,
pub language: Option<String>,
pub height: Option<u64>,
pub width: Option<u64>,
pub previews: Vec<LinkOrObject>,
}Expand description
A Link is an indirect, qualified reference to a resource identified by a URL.
The fundamental model for links is established by RFC 5988. Many of the
properties defined by the Activity Vocabulary allow values that are either
instances of {@link Object} or {@link Link}. When a {@link Link} is used,
it establishes a qualified relation connecting the subject (the containing
object) to the resource identified by the href. Properties of
the {@link Link} are properties of the reference as opposed to properties of
the resource.
The type https://www.w3.org/ns/activitystreams#Link.
Fields§
§href: Option<Iri>The target resource pointed to by a {@link Link}.
rels: Vec<String>A link relation associated with a {@link Link}. The value MUST conform to both the HTML5 and RFC 5988 “link relation” definitions.
media_type: Option<String>When used on a {@link Link}, identifies the MIME media type of the referenced resource.
digest_multibase: Option<String>The multibase-encoded integrity digest of the linked resource.
name: TextA simple, human-readable, plain-text name for the object. HTML markup MUST NOT be included. The name MAY be expressed using multiple language-tagged values.
language: Option<String>Hints as to the language used by the target resource. Value MUST be a BCP 47 Language-Tag.
height: Option<u64>On a {@link Link}, specifies a hint as to the rendering height in device-independent pixels of the linked resource.
width: Option<u64>On a {@link Link}, specifies a hint as to the rendering width in device-independent pixels of the linked resource.
previews: Vec<LinkOrObject>Identifies an entity that provides a preview of this object.