Struct coap_handler_implementations::wkc::EmptyRecord
source · pub struct EmptyRecord;
Expand description
A report with no path, relation or attributes
This is convenient both in places where a type is needed as an element for an Empty iterator (as in NotReporting) and to wrap a resource with no further properties in (in a Once iterator, relying on the tree builder to augment the empty path with the actual path).
Trait Implementations§
source§impl Record for EmptyRecord
impl Record for EmptyRecord
type PathElement = &'static &'static str
type PathElements = Empty<&'static &'static str>
type Attributes = Empty<Attribute>
source§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
source§fn rel(&self) -> Option<&str>
fn rel(&self) -> Option<&str>
Link relation (or None to default to the implicit “hosts”) Read more
source§fn attributes(&self) -> Self::Attributes
fn attributes(&self) -> Self::Attributes
Target attributes of the link