pub struct Said(/* private fields */);Expand description
KERI Self-Addressing Identifier (SAID).
A Blake3 hash that uniquely identifies a KERI event. Creates the
hash chain: each event’s p (previous) field is the prior event’s SAID.
Structurally identical to Prefix (both start with ‘E’) but semantically
distinct — a prefix identifies an identity, a SAID identifies an event.
Args:
- Inner
Stringshould start with'E'(enforced bynew(), not by serde).
Usage:
ⓘ
let said = Said::new("ESAID123".to_string())?;
assert_eq!(said.as_str(), "ESAID123");Implementations§
Source§impl Said
impl Said
Sourcepub fn new(s: String) -> Result<Self, KeriTypeError>
pub fn new(s: String) -> Result<Self, KeriTypeError>
Validates and wraps a KERI SAID string.
Sourcepub fn new_unchecked(s: String) -> Self
pub fn new_unchecked(s: String) -> Self
Wraps a SAID string without validation (for compute_said() output and storage loads).
Sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Consumes self and returns the inner String.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Said
impl<'de> Deserialize<'de> for Said
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 Eq for Said
impl StructuralPartialEq for Said
Auto Trait Implementations§
impl Freeze for Said
impl RefUnwindSafe for Said
impl Send for Said
impl Sync for Said
impl Unpin for Said
impl UnsafeUnpin for Said
impl UnwindSafe for Said
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