pub enum ToolAuthorityCommand {
SetGrant {
grant: PolicyGrant,
},
RevokeGrant {
key: PolicyKey,
},
ResolveApproval {
resolution: ApprovalResolution,
},
CloseClient {
consumer_id: ConsumerId,
actor_id: ToolActorId,
},
}Variants§
SetGrant
Fields
§
grant: PolicyGrantRevokeGrant
ResolveApproval
Fields
§
resolution: ApprovalResolutionCloseClient
Trait Implementations§
Source§impl Clone for ToolAuthorityCommand
impl Clone for ToolAuthorityCommand
Source§fn clone(&self) -> ToolAuthorityCommand
fn clone(&self) -> ToolAuthorityCommand
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 ToolAuthorityCommand
impl Debug for ToolAuthorityCommand
Source§impl<'de> Deserialize<'de> for ToolAuthorityCommand
impl<'de> Deserialize<'de> for ToolAuthorityCommand
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolAuthorityCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolAuthorityCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolAuthorityCommand
Source§impl PartialEq for ToolAuthorityCommand
impl PartialEq for ToolAuthorityCommand
Source§impl Serialize for ToolAuthorityCommand
impl Serialize for ToolAuthorityCommand
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ToolAuthorityCommand
Auto Trait Implementations§
impl Freeze for ToolAuthorityCommand
impl RefUnwindSafe for ToolAuthorityCommand
impl Send for ToolAuthorityCommand
impl Sync for ToolAuthorityCommand
impl Unpin for ToolAuthorityCommand
impl UnsafeUnpin for ToolAuthorityCommand
impl UnwindSafe for ToolAuthorityCommand
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