Struct CapturedAction
pub struct CapturedAction {
pub custody: Option<ConnectionSnapshot>,
pub invocation: Uuid,
pub capture_id: Uuid,
pub revision: String,
pub published: Option<PublishedInvocation>,
pub encoded: EncodedAction,
pub context: Option<ActionContext>,
pub original_heads: Vec<[u8; 32]>,
pub mutation_hashes: Vec<[u8; 32]>,
}Expand description
Exact local execution observation; an empty mutation set means read/no-op.
context retains the parent record and source invocation independently of
the published child address. Neither field establishes caller authority.
Fields§
§custody: Option<ConnectionSnapshot>Original broker-authenticated provenance, separate from app action context.
invocation: Uuid§capture_id: UuidRandom identity generated once, before content binding; retained on retry.
revision: String§published: Option<PublishedInvocation>§encoded: EncodedAction§context: Option<ActionContext>§original_heads: Vec<[u8; 32]>§mutation_hashes: Vec<[u8; 32]>Implementations§
§impl CapturedAction
impl CapturedAction
pub fn bound_invocation(&self) -> Result<Uuid, String>
pub fn bound_invocation(&self) -> Result<Uuid, String>
Compute the content-bound identity after the exact mutations are known.
pub fn report_against(&mut self, revision: &str) -> Result<(), String>
pub fn report_against(&mut self, revision: &str) -> Result<(), String>
Report this change against the published surface revision: a
change made while the surface moved under its input, or one the
person retries, is reported against the surface published since.
The revision is part of the content-bound identity, so the
invocation is bound again.
pub fn into_report(self) -> Result<LocalDocumentActionReport, String>
pub fn into_report(self) -> Result<LocalDocumentActionReport, String>
The report the collab client sends for this capture.
Trait Implementations§
§impl Clone for CapturedAction
impl Clone for CapturedAction
§fn clone(&self) -> CapturedAction
fn clone(&self) -> CapturedAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CapturedAction
impl RefUnwindSafe for CapturedAction
impl Send for CapturedAction
impl Sync for CapturedAction
impl Unpin for CapturedAction
impl UnsafeUnpin for CapturedAction
impl UnwindSafe for CapturedAction
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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