pub struct CreateEntry {
pub action: SignedHashed<Action>,
pub entry: Entry,
}Expand description
See Op::CreateEntry.
Fields§
§action: SignedHashed<Action>The signed action whose data is Create or Update.
entry: EntryThe entry being stored.
Implementations§
Source§impl CreateEntry
impl CreateEntry
Sourcepub fn new(
action: SignedHashed<Action>,
entry: Entry,
) -> Result<CreateEntry, WrongActionError>
pub fn new( action: SignedHashed<Action>, entry: Entry, ) -> Result<CreateEntry, WrongActionError>
Construct, validating that the action’s data creates an entry.
Trait Implementations§
Source§impl Clone for CreateEntry
impl Clone for CreateEntry
Source§fn clone(&self) -> CreateEntry
fn clone(&self) -> CreateEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateEntry
impl Debug for CreateEntry
Source§impl<'de> Deserialize<'de> for CreateEntry
impl<'de> Deserialize<'de> for CreateEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CreateEntry
Source§impl PartialEq for CreateEntry
impl PartialEq for CreateEntry
Source§impl Serialize for CreateEntry
impl Serialize for CreateEntry
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CreateEntry
Source§impl TryFrom<&CreateEntry> for SerializedBytes
impl TryFrom<&CreateEntry> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: &CreateEntry) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &CreateEntry) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<CreateEntry> for SerializedBytes
impl TryFrom<CreateEntry> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: CreateEntry) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: CreateEntry) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for CreateEntry
impl TryFrom<SerializedBytes> for CreateEntry
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(sb: SerializedBytes) -> Result<CreateEntry, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<CreateEntry, SerializedBytesError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateEntry
impl RefUnwindSafe for CreateEntry
impl Send for CreateEntry
impl Sync for CreateEntry
impl Unpin for CreateEntry
impl UnsafeUnpin for CreateEntry
impl UnwindSafe for CreateEntry
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<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.