Struct ChangeFact
pub struct ChangeFact {
pub change: [u8; 32],
pub app: String,
pub record: String,
pub resource: Option<String>,
pub at_ms: u64,
}Expand description
One change of an action, as the log indexes it: the unit it belongs to, the resource its own history entry names, and when it was made.
Fields§
§change: [u8; 32]The change’s hash.
app: StringThe app whose record the unit belongs to.
record: StringThe record the unit belongs to.
resource: Option<String>The resource the change’s history entry names, when it names one.
at_ms: u64When the change was made, in milliseconds since the Unix epoch.
Implementations§
§impl ChangeFact
impl ChangeFact
pub fn of_mutation(
app: &str,
record: &str,
mutation: &DocumentMutation,
) -> Vec<ChangeFact>
pub fn of_mutation( app: &str, record: &str, mutation: &DocumentMutation, ) -> Vec<ChangeFact>
The facts of the changes mutation carries in app’s record. Empty
for a mutation that carries no change (a snapshot) and for a change
that names no action: it says nothing of where it belongs.
pub fn of_payload(app: &str, record: &str, payload: &[u8]) -> Vec<ChangeFact>
pub fn of_payload(app: &str, record: &str, payload: &[u8]) -> Vec<ChangeFact>
The facts of the changes one signed document payload carries in
app’s record: the document frame inside the commit frame it may
arrive under.
pub fn of_changes(
app: &str,
record: &str,
changes: &[Change],
) -> Vec<ChangeFact>
pub fn of_changes( app: &str, record: &str, changes: &[Change], ) -> Vec<ChangeFact>
The facts of changes of app’s record: a document’s own history,
change by change.
Trait Implementations§
§impl Clone for ChangeFact
impl Clone for ChangeFact
§fn clone(&self) -> ChangeFact
fn clone(&self) -> ChangeFact
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ChangeFact
impl Debug for ChangeFact
§impl PartialEq for ChangeFact
impl PartialEq for ChangeFact
impl Eq for ChangeFact
impl StructuralPartialEq for ChangeFact
Auto Trait Implementations§
impl Freeze for ChangeFact
impl RefUnwindSafe for ChangeFact
impl Send for ChangeFact
impl Sync for ChangeFact
impl Unpin for ChangeFact
impl UnsafeUnpin for ChangeFact
impl UnwindSafe for ChangeFact
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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