pub struct GhostKeyInfo {
pub fingerprint: String,
pub label: Option<String>,
pub notary_info: String,
pub verifying_key_bytes: Option<Vec<u8>>,
}Expand description
Summary info about a stored ghostkey.
Fields§
§fingerprint: String§label: Option<String>§notary_info: StringThe notary certificate info field (encodes donation tier).
Historically called delegate_info — the wire-format key is frozen
via #[serde(rename)] for backward compat with stored state.
See freenet/web#24.
verifying_key_bytes: Option<Vec<u8>>Ed25519 verifying key bytes (32 bytes). Added in 0.2.2 for dapps that need the raw key (e.g. Harvest store contract parameters).
Trait Implementations§
Source§impl Clone for GhostKeyInfo
impl Clone for GhostKeyInfo
Source§fn clone(&self) -> GhostKeyInfo
fn clone(&self) -> GhostKeyInfo
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 GhostKeyInfo
impl Debug for GhostKeyInfo
Source§impl<'de> Deserialize<'de> for GhostKeyInfo
impl<'de> Deserialize<'de> for GhostKeyInfo
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 GhostKeyInfo
impl PartialEq for GhostKeyInfo
Source§impl Serialize for GhostKeyInfo
impl Serialize for GhostKeyInfo
impl StructuralPartialEq for GhostKeyInfo
Auto Trait Implementations§
impl Freeze for GhostKeyInfo
impl RefUnwindSafe for GhostKeyInfo
impl Send for GhostKeyInfo
impl Sync for GhostKeyInfo
impl Unpin for GhostKeyInfo
impl UnsafeUnpin for GhostKeyInfo
impl UnwindSafe for GhostKeyInfo
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