pub struct SignedEntry {
pub content: Value,
pub actor_sig: String,
}Expand description
A signed entry ready for submission to the registry.
Contains the serialized entry content and the base64-encoded actor signature.
Submit this to POST /v1/log/entries as { "content": ..., "actor_sig": "..." }.
Args:
content: The serialized entry content as a JSON value.actor_sig: Base64-encoded Ed25519 signature over the canonical content.
Fields§
§content: ValueThe serialized entry content as a JSON value.
actor_sig: StringBase64-encoded Ed25519 signature over the canonical content.
Implementations§
Source§impl SignedEntry
impl SignedEntry
Sourcepub fn to_request_body(&self) -> Value
pub fn to_request_body(&self) -> Value
Serialize to the JSON body expected by POST /v1/log/entries.
Usage:
ⓘ
let body = signed_entry.to_request_body();
// POST body to registryAuto Trait Implementations§
impl Freeze for SignedEntry
impl RefUnwindSafe for SignedEntry
impl Send for SignedEntry
impl Sync for SignedEntry
impl Unpin for SignedEntry
impl UnsafeUnpin for SignedEntry
impl UnwindSafe for SignedEntry
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