pub struct ConsentReceipt {
pub grants: Vec<Symbol>,
pub retain_ms: u64,
pub redact: Vec<Symbol>,
pub session: EdgeId,
pub seq: u64,
}Expand description
A visible consent receipt bound to one device-edge session.
Fields§
§grants: Vec<Symbol>Granted device capabilities, as visible device/* symbols.
retain_ms: u64Modeled retention window in milliseconds.
redact: Vec<Symbol>Fields or streams that must be redacted by downstream reapers.
session: EdgeIdSession that owns the visible consent.
seq: u64Ledger sequence number.
Implementations§
Source§impl ConsentReceipt
impl ConsentReceipt
Sourcepub fn new(
grants: Vec<Symbol>,
retain_ms: u64,
redact: Vec<Symbol>,
session: EdgeId,
seq: u64,
) -> Self
pub fn new( grants: Vec<Symbol>, retain_ms: u64, redact: Vec<Symbol>, session: EdgeId, seq: u64, ) -> Self
Builds a receipt with an explicit ledger sequence.
Sourcepub fn to_badge_scene(&self) -> Expr
pub fn to_badge_scene(&self) -> Expr
Renders the receipt as a compact scene badge for the active session.
Sourcepub fn to_glance_scene(&self) -> Expr
pub fn to_glance_scene(&self) -> Expr
Renders the receipt as a scene/glance card.
Trait Implementations§
Source§impl Clone for ConsentReceipt
impl Clone for ConsentReceipt
Source§fn clone(&self) -> ConsentReceipt
fn clone(&self) -> ConsentReceipt
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 ConsentReceipt
impl Debug for ConsentReceipt
impl Eq for ConsentReceipt
Source§impl PartialEq for ConsentReceipt
impl PartialEq for ConsentReceipt
impl StructuralPartialEq for ConsentReceipt
Auto Trait Implementations§
impl Freeze for ConsentReceipt
impl RefUnwindSafe for ConsentReceipt
impl Send for ConsentReceipt
impl Sync for ConsentReceipt
impl Unpin for ConsentReceipt
impl UnsafeUnpin for ConsentReceipt
impl UnwindSafe for ConsentReceipt
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