pub struct EntryContent {
pub entry_type: EntryType,
pub body: EntryBody,
pub actor_did: CanonicalDid,
}Expand description
The subset of an Entry that the actor signs.
The sequencer assigns sequence and timestamp after — those fields
are authenticated by the Merkle tree, not the actor’s signature.
Usage:
ⓘ
let content = EntryContent {
entry_type: EntryType::Register,
body: EntryBody::Register { inception_event: serde_json::json!({}) },
actor_did: CanonicalDid::parse("did:keri:E...")?,
};
let canonical = content.canonicalize()?;Fields§
§entry_type: EntryType§body: EntryBody§actor_did: CanonicalDidImplementations§
Source§impl EntryContent
impl EntryContent
Sourcepub fn canonicalize(&self) -> Result<Vec<u8>, TransparencyError>
pub fn canonicalize(&self) -> Result<Vec<u8>, TransparencyError>
Canonical JSON bytes for signing (via json-canon).
Trait Implementations§
Source§impl Clone for EntryContent
impl Clone for EntryContent
Source§fn clone(&self) -> EntryContent
fn clone(&self) -> EntryContent
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 EntryContent
impl Debug for EntryContent
Source§impl<'de> Deserialize<'de> for EntryContent
impl<'de> Deserialize<'de> for EntryContent
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
Source§impl PartialEq for EntryContent
impl PartialEq for EntryContent
Source§fn eq(&self, other: &EntryContent) -> bool
fn eq(&self, other: &EntryContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EntryContent
impl Serialize for EntryContent
impl StructuralPartialEq for EntryContent
Auto Trait Implementations§
impl Freeze for EntryContent
impl RefUnwindSafe for EntryContent
impl Send for EntryContent
impl Sync for EntryContent
impl Unpin for EntryContent
impl UnsafeUnpin for EntryContent
impl UnwindSafe for EntryContent
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