pub struct ResourceReadings {
pub revision: String,
pub records: Vec<(String, Option<ResourceCopy>)>,
}Expand description
What a read of several records answered: each record read (a joined one as its parts), its
copy or None while it is still arriving, and the revision of them all, which changes with
any write to any of them.
Fields§
§revision: String§records: Vec<(String, Option<ResourceCopy>)>Implementations§
Source§impl ResourceReadings
impl ResourceReadings
Sourcepub fn documents(self) -> Value
pub fn documents(self) -> Value
The readings as a reader that keeps the documents is answered: as readable, with
each document {"record", "document"}, whole, in hex. A reading a provider publishes
itself, which is no document, is answered as readable answers it.
§Panics
Never: a reading’s JSON always encodes.
Sourcepub fn readable(self) -> Result<Value, String>
pub fn readable(self) -> Result<Value, String>
The readings as every reader is answered: {"revision", "records": [...]}, each record
{"record", "value"} (ResourceCopy::readable, a document or a reading alike),
{"record", "absent": true} for one the workspace holds none of, or {"record", "arriving": true} for one still arriving.
§Errors
When a copy is a document this build reads none of (feature document-read).
Trait Implementations§
Source§impl Clone for ResourceReadings
impl Clone for ResourceReadings
Source§impl Debug for ResourceReadings
impl Debug for ResourceReadings
impl Eq for ResourceReadings
Source§impl PartialEq for ResourceReadings
impl PartialEq for ResourceReadings
impl StructuralPartialEq for ResourceReadings
Auto Trait Implementations§
impl Forget for ResourceReadings
impl Freeze for ResourceReadings
impl Move for ResourceReadings
impl RefUnwindSafe for ResourceReadings
impl Send for ResourceReadings
impl Sync for ResourceReadings
impl Unpin for ResourceReadings
impl UnsafeUnpin for ResourceReadings
impl UnwindSafe for ResourceReadings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more