pub struct MsgSignInput<'a> {
pub msg_type: &'a str,
pub id: &'a str,
pub from: &'a str,
pub to: &'a [&'a str],
pub reference: &'a str,
pub timestamp: Option<u64>,
pub expires_at: u64,
pub body: &'a Value,
}Expand description
Input parameters for constructing a message signature.
Fields§
§msg_type: &'a strMessage type (e.g. "consensus/ballot").
id: &'a strMessage UUID (v7 recommended).
from: &'a strSender DID.
to: &'a [&'a str]Recipient DIDs.
reference: &'a strOptional reference ID (e.g. parent message). Use "" for none.
timestamp: Option<u64>Unix timestamp in seconds. If None, the current time is used.
expires_at: u64Expiration as Unix seconds. 0 means use default (timestamp + DEFAULT_EXPIRE_SECONDS).
body: &'a ValueThe message body as a JSON value. Will be canonicalized (sorted keys, no whitespace).
Trait Implementations§
Source§impl<'a> Clone for MsgSignInput<'a>
impl<'a> Clone for MsgSignInput<'a>
Source§fn clone(&self) -> MsgSignInput<'a>
fn clone(&self) -> MsgSignInput<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for MsgSignInput<'a>
impl<'a> RefUnwindSafe for MsgSignInput<'a>
impl<'a> Send for MsgSignInput<'a>
impl<'a> Sync for MsgSignInput<'a>
impl<'a> Unpin for MsgSignInput<'a>
impl<'a> UnsafeUnpin for MsgSignInput<'a>
impl<'a> UnwindSafe for MsgSignInput<'a>
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