pub struct AvcActionDescriptor {
pub schema_version: u16,
pub action_id: Hash256,
pub actor_did: Did,
pub requested_permission: Permission,
pub tool: Option<String>,
pub target_did: Option<Did>,
pub data_class: Option<DataClass>,
pub estimated_budget_minor_units: Option<u64>,
pub estimated_risk_bp: Option<u32>,
pub requires_human_approval: bool,
pub human_approval_present: bool,
pub action_name: Option<String>,
}Fields§
§schema_version: u16§action_id: Hash256§actor_did: Did§requested_permission: Permission§tool: Option<String>§target_did: Option<Did>§data_class: Option<DataClass>§estimated_budget_minor_units: Option<u64>§estimated_risk_bp: Option<u32>§requires_human_approval: bool§human_approval_present: bool§action_name: Option<String>Implementations§
Source§impl AvcActionDescriptor
impl AvcActionDescriptor
pub fn from_action(action: &AvcActionRequest) -> Self
Trait Implementations§
Source§impl Clone for AvcActionDescriptor
impl Clone for AvcActionDescriptor
Source§fn clone(&self) -> AvcActionDescriptor
fn clone(&self) -> AvcActionDescriptor
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 AvcActionDescriptor
impl Debug for AvcActionDescriptor
Source§impl<'de> Deserialize<'de> for AvcActionDescriptor
impl<'de> Deserialize<'de> for AvcActionDescriptor
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 AvcActionDescriptor
Source§impl PartialEq for AvcActionDescriptor
impl PartialEq for AvcActionDescriptor
Source§fn eq(&self, other: &AvcActionDescriptor) -> bool
fn eq(&self, other: &AvcActionDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AvcActionDescriptor
impl Serialize for AvcActionDescriptor
impl StructuralPartialEq for AvcActionDescriptor
Auto Trait Implementations§
impl Freeze for AvcActionDescriptor
impl RefUnwindSafe for AvcActionDescriptor
impl Send for AvcActionDescriptor
impl Sync for AvcActionDescriptor
impl Unpin for AvcActionDescriptor
impl UnsafeUnpin for AvcActionDescriptor
impl UnwindSafe for AvcActionDescriptor
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