pub enum AttributeReport<'a> {
Status(AttributeStatus),
Data(AttributeData<'a>),
}Expand description
AttributeReportIB (§10.6.5) — one attribute’s outcome in a report.
The schema is a structure with two optional fields; §8.4.3 gives exactly one of them. Modelling it as a choice makes “neither” and “both” unrepresentable.
Variants§
Status(AttributeStatus)
AttributeStatus [0] — the path could not be served.
Data(AttributeData<'a>)
AttributeData [1] — the value.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for AttributeReport<'a>
impl<'a> Clone for AttributeReport<'a>
impl<'a> Copy for AttributeReport<'a>
Source§impl<'a> Debug for AttributeReport<'a>
impl<'a> Debug for AttributeReport<'a>
impl<'a> Eq for AttributeReport<'a>
Source§impl<'a> PartialEq for AttributeReport<'a>
impl<'a> PartialEq for AttributeReport<'a>
impl<'a> StructuralPartialEq for AttributeReport<'a>
Auto Trait Implementations§
impl<'a> Forget for AttributeReport<'a>
impl<'a> Freeze for AttributeReport<'a>
impl<'a> Move for AttributeReport<'a>
impl<'a> RefUnwindSafe for AttributeReport<'a>
impl<'a> Send for AttributeReport<'a>
impl<'a> Sync for AttributeReport<'a>
impl<'a> Unpin for AttributeReport<'a>
impl<'a> UnsafeUnpin for AttributeReport<'a>
impl<'a> UnwindSafe for AttributeReport<'a>
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