pub struct GovernedPaymentContext {
pub intent_id: String,
pub intent_hash: String,
pub purpose: String,
pub server_id: String,
pub tool_name: String,
pub approval_token_id: Option<String>,
}Expand description
Governed request details forwarded to payment rails when present.
Fields§
§intent_id: String§intent_hash: String§purpose: String§server_id: String§tool_name: String§approval_token_id: Option<String>Trait Implementations§
Source§impl Clone for GovernedPaymentContext
impl Clone for GovernedPaymentContext
Source§fn clone(&self) -> GovernedPaymentContext
fn clone(&self) -> GovernedPaymentContext
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 moreSource§impl Debug for GovernedPaymentContext
impl Debug for GovernedPaymentContext
Source§impl<'de> Deserialize<'de> for GovernedPaymentContext
impl<'de> Deserialize<'de> for GovernedPaymentContext
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
Source§impl PartialEq for GovernedPaymentContext
impl PartialEq for GovernedPaymentContext
Source§impl Serialize for GovernedPaymentContext
impl Serialize for GovernedPaymentContext
impl Eq for GovernedPaymentContext
impl StructuralPartialEq for GovernedPaymentContext
Auto Trait Implementations§
impl Freeze for GovernedPaymentContext
impl RefUnwindSafe for GovernedPaymentContext
impl Send for GovernedPaymentContext
impl Sync for GovernedPaymentContext
impl Unpin for GovernedPaymentContext
impl UnsafeUnpin for GovernedPaymentContext
impl UnwindSafe for GovernedPaymentContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.