pub struct AgentPermissions {
pub can_execute_transactions: bool,
pub can_access_external_apis: bool,
pub can_interact_with_agents: bool,
pub can_store_data: bool,
pub max_transaction_value: u64,
pub allowed_contracts: Vec<Address>,
}Expand description
Agent permissions
Fields§
§can_execute_transactions: boolCan execute transactions
can_access_external_apis: boolCan access external APIs
can_interact_with_agents: boolCan interact with other agents
can_store_data: boolCan store data on-chain
max_transaction_value: u64Maximum transaction value (in smallest TNZO unit)
allowed_contracts: Vec<Address>Allowed contract addresses
Trait Implementations§
Source§impl Clone for AgentPermissions
impl Clone for AgentPermissions
Source§fn clone(&self) -> AgentPermissions
fn clone(&self) -> AgentPermissions
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 AgentPermissions
impl Debug for AgentPermissions
Source§impl Default for AgentPermissions
impl Default for AgentPermissions
Source§impl<'de> Deserialize<'de> for AgentPermissions
impl<'de> Deserialize<'de> for AgentPermissions
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 AgentPermissions
Source§impl PartialEq for AgentPermissions
impl PartialEq for AgentPermissions
Source§fn eq(&self, other: &AgentPermissions) -> bool
fn eq(&self, other: &AgentPermissions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentPermissions
impl Serialize for AgentPermissions
impl StructuralPartialEq for AgentPermissions
Auto Trait Implementations§
impl Freeze for AgentPermissions
impl RefUnwindSafe for AgentPermissions
impl Send for AgentPermissions
impl Sync for AgentPermissions
impl Unpin for AgentPermissions
impl UnsafeUnpin for AgentPermissions
impl UnwindSafe for AgentPermissions
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