pub struct GuardianRequestInput {
pub context: ContextId,
pub account: AuthorityId,
pub guardian: AuthorityId,
pub account_commitment: Hash32,
pub guardian_commitment: Hash32,
pub parameters: GuardianParameters,
pub requested_at: PhysicalTime,
pub expires_at: Option<PhysicalTime>,
}Expand description
Input for requesting or cancelling a guardian relationship
Fields§
§context: ContextIdRelational context where the request is recorded
account: AuthorityIdAccount authority to be protected
guardian: AuthorityIdProspective guardian authority
account_commitment: Hash32Commitment of the account authority (reduced state)
guardian_commitment: Hash32Commitment of the guardian authority (reduced state)
parameters: GuardianParametersParameters proposed for this guardian binding
requested_at: PhysicalTimeTimestamp when the request is made (uses unified time system)
expires_at: Option<PhysicalTime>Optional expiration for the request (uses unified time system)
Implementations§
Source§impl GuardianRequestInput
impl GuardianRequestInput
Sourcepub fn requested_at_ms(&self) -> u64
pub fn requested_at_ms(&self) -> u64
Get timestamp in milliseconds (backward compatibility)
Sourcepub fn expires_at_ms(&self) -> Option<u64>
pub fn expires_at_ms(&self) -> Option<u64>
Get expiration in milliseconds (backward compatibility)
Trait Implementations§
Source§impl Clone for GuardianRequestInput
impl Clone for GuardianRequestInput
Source§fn clone(&self) -> GuardianRequestInput
fn clone(&self) -> GuardianRequestInput
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 Freeze for GuardianRequestInput
impl RefUnwindSafe for GuardianRequestInput
impl Send for GuardianRequestInput
impl Sync for GuardianRequestInput
impl Unpin for GuardianRequestInput
impl UnsafeUnpin for GuardianRequestInput
impl UnwindSafe for GuardianRequestInput
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