pub struct ActionEffect {
pub kind: String,
pub writes: Vec<EffectWrite>,
pub intents: Vec<IntentRecord>,
}Expand description
An action effect containing a kind and write operations.
Fields§
§kind: String§writes: Vec<EffectWrite>§intents: Vec<IntentRecord>Optional intent records attached to this effect.
#[serde(default)] is intentional: captures created before
intent support was added will not have this field. Deserializing
those captures must produce an empty vec rather than a parse error
to maintain backward compatibility with existing capture bundles.
Trait Implementations§
Source§impl Clone for ActionEffect
impl Clone for ActionEffect
Source§fn clone(&self) -> ActionEffect
fn clone(&self) -> ActionEffect
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 ActionEffect
impl Debug for ActionEffect
Source§impl<'de> Deserialize<'de> for ActionEffect
impl<'de> Deserialize<'de> for ActionEffect
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 ActionEffect
impl PartialEq for ActionEffect
Source§fn eq(&self, other: &ActionEffect) -> bool
fn eq(&self, other: &ActionEffect) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActionEffect
impl Serialize for ActionEffect
impl StructuralPartialEq for ActionEffect
Auto Trait Implementations§
impl Freeze for ActionEffect
impl RefUnwindSafe for ActionEffect
impl Send for ActionEffect
impl Sync for ActionEffect
impl Unpin for ActionEffect
impl UnsafeUnpin for ActionEffect
impl UnwindSafe for ActionEffect
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