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
sourceimpl 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) -> &ActionHash
pub fn prev_action(&self) -> &ActionHash
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 entry_hash(&self) -> &EntryHash
pub fn entry_hash(&self) -> &EntryHash
sourcepub fn app_entry_type(&self) -> Option<&AppEntryType>
pub fn app_entry_type(&self) -> Option<&AppEntryType>
The AppEntryType
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
sourceimpl Clone for EntryCreationAction
impl Clone for EntryCreationAction
sourcefn clone(&self) -> EntryCreationAction
fn clone(&self) -> EntryCreationAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EntryCreationAction
impl Debug for EntryCreationAction
sourceimpl<'de> Deserialize<'de> for EntryCreationAction
impl<'de> Deserialize<'de> for EntryCreationAction
sourcefn 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
sourceimpl From<Create<EntryRateWeight>> for EntryCreationAction
impl From<Create<EntryRateWeight>> for EntryCreationAction
sourceimpl From<EntryCreationAction> for Action
impl From<EntryCreationAction> for Action
sourcefn from(e: EntryCreationAction) -> Self
fn from(e: EntryCreationAction) -> Self
Converts to this type from the input type.
sourceimpl From<Update<EntryRateWeight>> for EntryCreationAction
impl From<Update<EntryRateWeight>> for EntryCreationAction
sourceimpl HashableContent for EntryCreationAction
impl HashableContent for EntryCreationAction
Allows a EntryCreationAction
to hash the same bytes as
the equivalent Action
variant without needing to clone the action.
sourcefn hashable_content(&self) -> HashableContentBytes
fn hashable_content(&self) -> HashableContentBytes
Return a subset of the content, either as SerializedBytes “content”, which will be used to compute the hash, or as an already precomputed hash which will be used directly Read more
sourceimpl PartialEq<EntryCreationAction> for EntryCreationAction
impl PartialEq<EntryCreationAction> for EntryCreationAction
sourcefn eq(&self, other: &EntryCreationAction) -> bool
fn eq(&self, other: &EntryCreationAction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EntryCreationAction) -> bool
fn ne(&self, other: &EntryCreationAction) -> bool
This method tests for !=
.
sourceimpl Serialize for EntryCreationAction
impl Serialize for EntryCreationAction
sourceimpl TryFrom<&EntryCreationAction> for SerializedBytes
impl TryFrom<&EntryCreationAction> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
sourcefn try_from(
t: &EntryCreationAction
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(
t: &EntryCreationAction
) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
sourceimpl TryFrom<Action> for EntryCreationAction
impl TryFrom<Action> for EntryCreationAction
sourceimpl TryFrom<EntryCreationAction> for SerializedBytes
impl TryFrom<EntryCreationAction> for SerializedBytes
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
sourcefn try_from(
t: EntryCreationAction
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(
t: EntryCreationAction
) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
sourceimpl TryFrom<SerializedBytes> for EntryCreationAction
impl TryFrom<SerializedBytes> for EntryCreationAction
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
sourcefn try_from(
sb: SerializedBytes
) -> Result<EntryCreationAction, SerializedBytesError>
fn try_from(
sb: SerializedBytes
) -> Result<EntryCreationAction, SerializedBytesError>
Performs the conversion.
impl StructuralPartialEq for EntryCreationAction
Auto Trait Implementations
impl RefUnwindSafe for EntryCreationAction
impl Send for EntryCreationAction
impl Sync for EntryCreationAction
impl Unpin for EntryCreationAction
impl UnwindSafe for EntryCreationAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more