pub struct PreparedControl {
pub record: SignedRecord,
pub control: ThreadControl,
pub thread: ThreadRef,
pub property_version: Vec<u8>,
pub thread_version: Vec<u8>,
}Expand description
Canonical original operation, plus the exact observed versions for its RPC. A command never invents a frontier from a mutable projection or wall clock.
Fields§
§record: SignedRecord§control: ThreadControl§thread: ThreadRef§property_version: Vec<u8>§thread_version: Vec<u8>Implementations§
Source§impl PreparedControl
impl PreparedControl
pub fn sign( observed: &ThreadOverview, control: Control, author: Author<'_>, operation_id: Uuid, occurred_at_ms: i64, signer: &impl Signer, ) -> Result<Self, Error>
pub fn revise_intent(&self) -> Result<ReviseIntentRequest, Error>
pub fn rename(&self) -> Result<RenameThreadRequest, Error>
pub fn change_lifecycle(&self) -> Result<ChangeThreadLifecycleRequest, Error>
pub fn record_review(&self) -> Result<RecordReviewRequest, Error>
pub fn set_audience(&self) -> Result<SetThreadAudienceRequest, Error>
pub fn set_retention(&self) -> Result<SetThreadRetentionRequest, Error>
pub fn set_sharing(&self) -> Result<SetThreadSharingRequest, Error>
Auto Trait Implementations§
impl Freeze for PreparedControl
impl RefUnwindSafe for PreparedControl
impl Send for PreparedControl
impl Sync for PreparedControl
impl Unpin for PreparedControl
impl UnsafeUnpin for PreparedControl
impl UnwindSafe for PreparedControl
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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