pub enum Did {
Edit(FieldEdit),
Verb(VerbCall),
Group(GroupOf),
History(HistoryStep),
}Expand description
What an action did.
Variants§
Implementations§
Source§impl Did
impl Did
Sourcepub fn verb(
action: ActionKey,
args: impl IntoIterator<Item = (String, Scalar)>,
) -> Self
pub fn verb( action: ActionKey, args: impl IntoIterator<Item = (String, Scalar)>, ) -> Self
A verb with its arguments bounded to plain values.
Sourcepub fn group(members: impl IntoIterator<Item = Did>) -> Self
pub fn group(members: impl IntoIterator<Item = Did>) -> Self
A group of members, keeping at most MAX_GROUP_MEMBERS by value
and every distinct action among them without its values.
Sourcepub fn forget_args(&mut self)
pub fn forget_args(&mut self)
Drop every verb argument and field value, keeping what was done and where: the form a public audit keeps.
pub fn history(op: HistoryOp, steps: u32, of: Option<Described>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Did
impl<'de> Deserialize<'de> for Did
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Did
impl StructuralPartialEq for Did
Auto Trait Implementations§
impl Forget for Did
impl Freeze for Did
impl Move for Did
impl RefUnwindSafe for Did
impl Send for Did
impl Sync for Did
impl Unpin for Did
impl UnsafeUnpin for Did
impl UnwindSafe for Did
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