pub enum EntryCreationAction {
Create(Create),
Update(Update),
}Expand description
Either a Action::Create or a Action::Update.
These actions both create a new instance of an Entry.
Variants§
Create(Create)
A Action::Create that creates a new instance of an Entry.
Update(Update)
A Action::Update that creates a new instance of an Entry.
Implementations§
Source§impl EntryCreationAction
impl EntryCreationAction
The author of this action.
Sourcepub fn action_seq(&self) -> &u32
pub fn action_seq(&self) -> &u32
The action sequence number of this action.
Sourcepub fn prev_action(&self) -> &HoloHash<Action>
pub fn prev_action(&self) -> &HoloHash<Action>
The previous ActionHash of the previous action in the source chain.
Sourcepub fn entry_type(&self) -> &EntryType
pub fn entry_type(&self) -> &EntryType
Sourcepub fn app_entry_def(&self) -> Option<&AppEntryDef>
pub fn app_entry_def(&self) -> Option<&AppEntryDef>
The AppEntryDef of the Entry being created if it
is an application defined Entry.
Sourcepub fn is_agent_entry_type(&self) -> bool
pub fn is_agent_entry_type(&self) -> bool
Returns true if this action creates an EntryType::AgentPubKey Entry.
Sourcepub fn is_cap_claim_entry_type(&self) -> bool
pub fn is_cap_claim_entry_type(&self) -> bool
Returns true if this action creates an EntryType::CapClaim Entry.
Sourcepub fn is_cap_grant_entry_type(&self) -> bool
pub fn is_cap_grant_entry_type(&self) -> bool
Returns true if this action creates an EntryType::CapGrant Entry.
Sourcepub fn action_type(&self) -> ActionType
pub fn action_type(&self) -> ActionType
Get the ActionType for this.
Trait Implementations§
Source§impl Clone for EntryCreationAction
impl Clone for EntryCreationAction
Source§fn clone(&self) -> EntryCreationAction
fn clone(&self) -> EntryCreationAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EntryCreationAction
impl Debug for EntryCreationAction
Source§impl<'de> Deserialize<'de> for EntryCreationAction
impl<'de> Deserialize<'de> for EntryCreationAction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EntryCreationAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EntryCreationAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<Create> for EntryCreationAction
impl From<Create> for EntryCreationAction
Source§fn from(c: Create) -> EntryCreationAction
fn from(c: Create) -> EntryCreationAction
Source§impl From<EntryCreationAction> for Action
impl From<EntryCreationAction> for Action
Source§fn from(e: EntryCreationAction) -> Action
fn from(e: EntryCreationAction) -> Action
Source§impl From<Update> for EntryCreationAction
impl From<Update> for EntryCreationAction
Source§fn from(u: Update) -> EntryCreationAction
fn from(u: Update) -> EntryCreationAction
Source§impl HashableContent for EntryCreationAction
Allows a EntryCreationAction to hash the same bytes as
the equivalent Action variant without needing to clone the action.
impl HashableContent for EntryCreationAction
Allows a EntryCreationAction to hash the same bytes as
the equivalent Action variant without needing to clone the action.
Source§fn hash_type(&self) -> <EntryCreationAction as HashableContent>::HashType
fn hash_type(&self) -> <EntryCreationAction as HashableContent>::HashType
Source§fn hashable_content(&self) -> HashableContentBytes
fn hashable_content(&self) -> HashableContentBytes
Source§impl PartialEq for EntryCreationAction
impl PartialEq for EntryCreationAction
Source§impl Serialize for EntryCreationAction
impl Serialize for EntryCreationAction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryFrom<&EntryCreationAction> for SerializedBytes
impl TryFrom<&EntryCreationAction> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
Source§fn try_from(
t: &EntryCreationAction,
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from( t: &EntryCreationAction, ) -> Result<SerializedBytes, SerializedBytesError>
Source§impl TryFrom<Action> for EntryCreationAction
impl TryFrom<Action> for EntryCreationAction
Source§type Error = WrongActionError
type Error = WrongActionError
Source§fn try_from(
value: Action,
) -> Result<EntryCreationAction, <EntryCreationAction as TryFrom<Action>>::Error>
fn try_from( value: Action, ) -> Result<EntryCreationAction, <EntryCreationAction as TryFrom<Action>>::Error>
Source§impl TryFrom<EntryCreationAction> for SerializedBytes
impl TryFrom<EntryCreationAction> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
Source§fn try_from(
t: EntryCreationAction,
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from( t: EntryCreationAction, ) -> Result<SerializedBytes, SerializedBytesError>
Source§impl TryFrom<SerializedBytes> for EntryCreationAction
impl TryFrom<SerializedBytes> for EntryCreationAction
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
Source§fn try_from(
sb: SerializedBytes,
) -> Result<EntryCreationAction, SerializedBytesError>
fn try_from( sb: SerializedBytes, ) -> Result<EntryCreationAction, SerializedBytesError>
impl Eq for EntryCreationAction
impl StructuralPartialEq for EntryCreationAction
Auto Trait Implementations§
impl Freeze for EntryCreationAction
impl RefUnwindSafe for EntryCreationAction
impl Send for EntryCreationAction
impl Sync for EntryCreationAction
impl Unpin for EntryCreationAction
impl UnwindSafe for EntryCreationAction
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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
key and return true if they are equal.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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T, C> HashableContentExtSync<T> for Cwhere
T: HashTypeSync,
C: HashableContent<HashType = T>,
impl<T, C> HashableContentExtSync<T> for Cwhere
T: HashTypeSync,
C: HashableContent<HashType = T>,
Source§fn into_hashed(self) -> HoloHashed<C>
fn into_hashed(self) -> HoloHashed<C>
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> ⓘ
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.