pub struct ModelSignature {
pub content_hash: String,
pub signature: String,
pub signer_key: String,
pub signer_id: Option<String>,
pub timestamp: u64,
pub algorithm: String,
}Expand description
Metadata for a signed model
Fields§
§content_hash: StringModel content hash (BLAKE3)
signature: StringSignature over the content hash (hex-encoded)
signer_key: StringSigner’s public key (hex-encoded)
signer_id: Option<String>Signer identity (optional, e.g., email)
timestamp: u64Timestamp (Unix epoch seconds)
algorithm: StringAlgorithm identifier
Implementations§
Source§impl ModelSignature
impl ModelSignature
Trait Implementations§
Source§impl Clone for ModelSignature
impl Clone for ModelSignature
Source§fn clone(&self) -> ModelSignature
fn clone(&self) -> ModelSignature
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 ModelSignature
impl Debug for ModelSignature
Source§impl<'de> Deserialize<'de> for ModelSignature
impl<'de> Deserialize<'de> for ModelSignature
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
Auto Trait Implementations§
impl Freeze for ModelSignature
impl RefUnwindSafe for ModelSignature
impl Send for ModelSignature
impl Sync for ModelSignature
impl Unpin for ModelSignature
impl UnsafeUnpin for ModelSignature
impl UnwindSafe for ModelSignature
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