pub enum CommandEffect {
Read,
DocumentMutation,
WorkspaceMutation,
FilesystemWrite,
NetworkDisclosure,
DeviceCapture,
ExternalCharge,
PackageLifecycle,
}Expand description
Individual effect of an executed command.
Variants§
Read
Read-only inspection of document, workspace, or session state.
DocumentMutation
Mutation confined to the active document state.
WorkspaceMutation
Mutation to workspace, catalog, or project state outside the document.
FilesystemWrite
Persistent write to local storage, OPFS, or filesystem.
NetworkDisclosure
Disclosure of data or telemetry over network or remote transport.
DeviceCapture
Capture from hardware device (camera, microphone, tablet, keyboard).
ExternalCharge
Invocation causing external financial charge or credit deduction.
PackageLifecycle
Lifecycle transition of a package, worker, or application service.
Implementations§
Source§impl CommandEffect
impl CommandEffect
Sourcepub fn from_str_strict(s: &str) -> Result<Self, ContractError>
pub fn from_str_strict(s: &str) -> Result<Self, ContractError>
Constructs from str-strict.
Trait Implementations§
Source§impl Clone for CommandEffect
impl Clone for CommandEffect
impl Copy for CommandEffect
Source§impl Debug for CommandEffect
impl Debug for CommandEffect
Source§impl<'de> Deserialize<'de> for CommandEffect
impl<'de> Deserialize<'de> for CommandEffect
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 Display for CommandEffect
impl Display for CommandEffect
impl Eq for CommandEffect
Source§impl FromIterator<CommandEffect> for EffectSet
impl FromIterator<CommandEffect> for EffectSet
Source§fn from_iter<T: IntoIterator<Item = CommandEffect>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = CommandEffect>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for CommandEffect
impl Hash for CommandEffect
Source§impl Ord for CommandEffect
impl Ord for CommandEffect
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CommandEffect
impl PartialEq for CommandEffect
Source§impl PartialOrd for CommandEffect
impl PartialOrd for CommandEffect
Source§impl Serialize for CommandEffect
impl Serialize for CommandEffect
impl StructuralPartialEq for CommandEffect
Auto Trait Implementations§
impl Freeze for CommandEffect
impl RefUnwindSafe for CommandEffect
impl Send for CommandEffect
impl Sync for CommandEffect
impl Unpin for CommandEffect
impl UnsafeUnpin for CommandEffect
impl UnwindSafe for CommandEffect
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