pub struct Read<T> { /* private fields */ }Expand description
A document read into a vocabulary type.
Implementations§
Source§impl<T> Read<T>
impl<T> Read<T>
Sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
The value that was read, by value.
Sourcepub fn unresolved_contexts(&self) -> &[String]
pub fn unresolved_contexts(&self) -> &[String]
Context IRIs the document named that Ojak does not ship.
Not an error, but what they define was not resolved: a key relying on them keeps the sender’s spelling, so no field of Ojak’s types reads it. Worth logging when a peer’s documents read emptier than expected.
Sourcepub fn lost(&self) -> &[Loss]
pub fn lost(&self) -> &[Loss]
What the document said that the value does not: properties the
vocabulary does not define, and values that were not the shape their
property allows. Only read_reporting fills it.
Not an error: reading is tolerant so that one odd property does not cost the whole object. Worth logging, and worth a look when a peer’s documents read emptier than expected.
Trait Implementations§
impl<T: Eq> Eq for Read<T>
impl<T: PartialEq> StructuralPartialEq for Read<T>
Auto Trait Implementations§
impl<T> Freeze for Read<T>where
T: Freeze,
impl<T> RefUnwindSafe for Read<T>where
T: RefUnwindSafe,
impl<T> Send for Read<T>where
T: Send,
impl<T> Sync for Read<T>where
T: Sync,
impl<T> Unpin for Read<T>where
T: Unpin,
impl<T> UnsafeUnpin for Read<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Read<T>where
T: UnwindSafe,
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