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
Auto Trait Implementations§
impl Freeze for EmptyRecord
impl RefUnwindSafe for EmptyRecord
impl Send for EmptyRecord
impl Sync for EmptyRecord
impl Unpin for EmptyRecord
impl UnwindSafe for EmptyRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes