pub trait Record {
type PathElement: AsRef<str>;
type PathElements: Iterator<Item = Self::PathElement>;
type Attributes: Iterator<Item = Attribute>;
// Required methods
fn path(&self) -> Self::PathElements;
fn rel(&self) -> Option<&str>;
fn attributes(&self) -> Self::Attributes;
}
Expand description
A entry produced by Reporting, corresponding to a single link in a Link Format file.
Required Associated Types§
type PathElement: AsRef<str>
type PathElements: Iterator<Item = Self::PathElement>
type Attributes: Iterator<Item = Attribute>
Required Methods§
Sourcefn path(&self) -> Self::PathElements
fn path(&self) -> Self::PathElements
List of path segments (equivalent to Uri-Path option values) leading to the indicated resoruce
Sourcefn rel(&self) -> Option<&str>
fn rel(&self) -> Option<&str>
Link relation (or None to default to the implicit “hosts”)
Note that the allowed character set is limited compared to full UTF-8 strings.
Sourcefn attributes(&self) -> Self::Attributes
fn attributes(&self) -> Self::Attributes
Target attributes of the link