pub struct ResourceReadRequest {
pub workspace: String,
pub app: String,
pub record: String,
pub joined: bool,
pub after: Option<String>,
pub wait_ms: Option<u32>,
pub answer: ReadAnswer,
}Expand description
One record a reader asks for over the action API: alone, or joined
as the chain of parts whose base it is, once it differs from the revision
after or wait_ms passed.
Fields§
§workspace: StringThe workspace the record is in: part of its address, so a read is decided at that workspace’s record node, never by which workspace the connection was admitted to.
app: StringThe app whose record it is.
record: StringIts id there; empty for the app’s record of the workspace.
joined: bool§after: Option<String>§wait_ms: Option<u32>How long to wait for a write past after, at most MAX_REMOTE_WAIT.
answer: ReadAnswerWhat the read answers: the record as every reader reads it, or one of the other answers
ReadAnswer names.
Trait Implementations§
Source§impl Clone for ResourceReadRequest
impl Clone for ResourceReadRequest
Source§impl Debug for ResourceReadRequest
impl Debug for ResourceReadRequest
Source§impl<'de> Deserialize<'de> for ResourceReadRequest
impl<'de> Deserialize<'de> for ResourceReadRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResourceReadRequest
Source§impl PartialEq for ResourceReadRequest
impl PartialEq for ResourceReadRequest
Source§impl Serialize for ResourceReadRequest
impl Serialize for ResourceReadRequest
impl StructuralPartialEq for ResourceReadRequest
Auto Trait Implementations§
impl Forget for ResourceReadRequest
impl Freeze for ResourceReadRequest
impl Move for ResourceReadRequest
impl RefUnwindSafe for ResourceReadRequest
impl Send for ResourceReadRequest
impl Sync for ResourceReadRequest
impl Unpin for ResourceReadRequest
impl UnsafeUnpin for ResourceReadRequest
impl UnwindSafe for ResourceReadRequest
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
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> ⓘ
Converts
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> ⓘ
Converts
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