Trait coap_handler_implementations::wkc::Record
source · [−]pub trait Record {
type PathElement: AsRef<str>;
type PathElements: Iterator<Item = Self::PathElement>;
type Attributes: Iterator<Item = Attribute>;
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.
Associated Types
type PathElement: AsRef<str>
type PathElements: Iterator<Item = Self::PathElement>
type Attributes: Iterator<Item = Attribute>
Required methods
fn path(&self) -> Self::PathElements
fn path(&self) -> Self::PathElements
List of path segments (equivalent to Uri-Path option values) leading to the indicated resoruce
Link relation (or None to default to the implicit “hosts”)
Note that the allowed character set is limited compared to full UTF-8 strings.
fn attributes(&self) -> Self::Attributes
fn attributes(&self) -> Self::Attributes
Target attributes of the link