pub struct GroupsOperation<C = ()> {
pub id: Hash,
pub author: VerifyingKey,
pub dependencies: Vec<Hash>,
pub group_id: VerifyingKey,
pub action: GroupAction<VerifyingKey, C>,
}Available on crate feature
groups only.Expand description
Concrete groups operation type.
Fields§
§id: Hash§dependencies: Vec<Hash>§group_id: VerifyingKey§action: GroupAction<VerifyingKey, C>Trait Implementations§
Source§impl<C: Clone> Clone for GroupsOperation<C>
impl<C: Clone> Clone for GroupsOperation<C>
Source§impl<C: Debug> Debug for GroupsOperation<C>
impl<C: Debug> Debug for GroupsOperation<C>
Source§impl<'de, C> Deserialize<'de> for GroupsOperation<C>where
C: Deserialize<'de>,
impl<'de, C> Deserialize<'de> for GroupsOperation<C>where
C: Deserialize<'de>,
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<C: Eq> Eq for GroupsOperation<C>
Source§impl<C> Operation<VerifyingKey, Hash, C> for GroupsOperation<C>where
C: Conditions,
Implementation of groups Operation trait.
impl<C> Operation<VerifyingKey, Hash, C> for GroupsOperation<C>where
C: Conditions,
Implementation of groups Operation trait.
ID of the author of this operation.
Source§fn dependencies(&self) -> Vec<Hash>
fn dependencies(&self) -> Vec<Hash>
Auth dependencies.
Source§fn group_id(&self) -> VerifyingKey
fn group_id(&self) -> VerifyingKey
The id of the group the action applies to.
Source§fn action(&self) -> GroupAction<VerifyingKey, C>
fn action(&self) -> GroupAction<VerifyingKey, C>
The group action.
Source§impl<C: PartialEq> PartialEq for GroupsOperation<C>
impl<C: PartialEq> PartialEq for GroupsOperation<C>
Source§impl<C> Serialize for GroupsOperation<C>where
C: Serialize,
impl<C> Serialize for GroupsOperation<C>where
C: Serialize,
impl<C: PartialEq> StructuralPartialEq for GroupsOperation<C>
Auto Trait Implementations§
impl<C> Freeze for GroupsOperation<C>
impl<C> RefUnwindSafe for GroupsOperation<C>
impl<C> Send for GroupsOperation<C>
impl<C> Sync for GroupsOperation<C>
impl<C> Unpin for GroupsOperation<C>
impl<C> UnsafeUnpin for GroupsOperation<C>
impl<C> UnwindSafe for GroupsOperation<C>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> Extensions for T
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