pub enum ReadAnswer {
Reading,
Document,
Listing,
Decision,
WriteDecision,
}Expand description
What a ResourceReadRequest is answered with.
Variants§
Reading
Each resource as every reader reads it (ResourceReadings::readable).
Document
Each resource as its document, whole: what a reader that merges or hydrates the resource
itself reads (ResourceReadings::documents).
Listing
The resources of the request’s workspace the caller may read rather than one: its app’s,
or every app’s where the app is empty (ResourceReads::list). Its record is not read.
Decision
Only whether the caller may read the record now, decided as its read is, without the copy
(ResourceReads::may_read): what a reader that keeps the record another way asks.
WriteDecision
Only whether the caller may change the record now, decided as its write is, without the
change (ResourceReads::may_write): what a route asks before it changes the record.
Implementations§
Source§impl ReadAnswer
impl ReadAnswer
Sourcepub const fn is_reading(&self) -> bool
pub const fn is_reading(&self) -> bool
Whether this is the default answer, which the wire leaves out.
Trait Implementations§
Source§impl Clone for ReadAnswer
impl Clone for ReadAnswer
impl Copy for ReadAnswer
Source§impl Debug for ReadAnswer
impl Debug for ReadAnswer
Source§impl Default for ReadAnswer
impl Default for ReadAnswer
Source§impl<'de> Deserialize<'de> for ReadAnswer
impl<'de> Deserialize<'de> for ReadAnswer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ReadAnswer
Source§impl PartialEq for ReadAnswer
impl PartialEq for ReadAnswer
Source§impl Serialize for ReadAnswer
impl Serialize for ReadAnswer
impl StructuralPartialEq for ReadAnswer
Auto Trait Implementations§
impl Forget for ReadAnswer
impl Freeze for ReadAnswer
impl Move for ReadAnswer
impl RefUnwindSafe for ReadAnswer
impl Send for ReadAnswer
impl Sync for ReadAnswer
impl Unpin for ReadAnswer
impl UnsafeUnpin for ReadAnswer
impl UnwindSafe for ReadAnswer
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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