pub struct SpendAuthority {
pub principal: String,
pub grant: String,
}Expand description
ON WHOSE AUTHORITY the node signed without asking.
Two fields rather than one sentence, because a person auditing an unapproved spend asks two separate questions: WHO holds the standing permission, and WHICH standing permission was used. A prose sentence answers neither in a form a filter — or a revocation — can act on.
Fields§
§principal: StringThe principal whose funds moved and whose consent was relied on: an account id, a profile id,
or "node" for the node’s own operating wallet.
grant: StringThe standing grant relied on, in a form the operator can go and revoke — a setting name, a policy id, a pairing token id.
Trait Implementations§
Source§impl Clone for SpendAuthority
impl Clone for SpendAuthority
Source§fn clone(&self) -> SpendAuthority
fn clone(&self) -> SpendAuthority
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 SpendAuthority
impl Debug for SpendAuthority
Source§impl<'de> Deserialize<'de> for SpendAuthority
impl<'de> Deserialize<'de> for SpendAuthority
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
impl Eq for SpendAuthority
Source§impl PartialEq for SpendAuthority
impl PartialEq for SpendAuthority
Source§impl Serialize for SpendAuthority
impl Serialize for SpendAuthority
impl StructuralPartialEq for SpendAuthority
Auto Trait Implementations§
impl Freeze for SpendAuthority
impl RefUnwindSafe for SpendAuthority
impl Send for SpendAuthority
impl Sync for SpendAuthority
impl Unpin for SpendAuthority
impl UnsafeUnpin for SpendAuthority
impl UnwindSafe for SpendAuthority
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