Enum air_parser::ast::ImmutableValue
source · pub enum ImmutableValue<'i> {
InitPeerId,
Error(InstructionErrorAST<'i>),
LastError(Option<LambdaAST<'i>>),
Timestamp,
TTL,
Literal(JsonString),
Number(Number),
Boolean(bool),
EmptyArray,
Variable(ImmutableVariable<'i>),
VariableWithLambda(ImmutableVariableWithLambda<'i>),
}
Expand description
Represents all immutable values that is possible to set in AIR scripts.
Variants§
InitPeerId
Error(InstructionErrorAST<'i>)
LastError(Option<LambdaAST<'i>>)
Timestamp
TTL
Literal(JsonString)
Number(Number)
Boolean(bool)
EmptyArray
Variable(ImmutableVariable<'i>)
VariableWithLambda(ImmutableVariableWithLambda<'i>)
Trait Implementations§
source§impl<'i> Clone for ImmutableValue<'i>
impl<'i> Clone for ImmutableValue<'i>
source§fn clone(&self) -> ImmutableValue<'i>
fn clone(&self) -> ImmutableValue<'i>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'i> Debug for ImmutableValue<'i>
impl<'i> Debug for ImmutableValue<'i>
source§impl<'de: 'i, 'i> Deserialize<'de> for ImmutableValue<'i>
impl<'de: 'i, 'i> Deserialize<'de> for ImmutableValue<'i>
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 ImmutableValue<'_>
impl Display for ImmutableValue<'_>
source§impl<'i> PartialEq for ImmutableValue<'i>
impl<'i> PartialEq for ImmutableValue<'i>
source§fn eq(&self, other: &ImmutableValue<'i>) -> bool
fn eq(&self, other: &ImmutableValue<'i>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'i> Serialize for ImmutableValue<'i>
impl<'i> Serialize for ImmutableValue<'i>
impl<'i> StructuralPartialEq for ImmutableValue<'i>
Auto Trait Implementations§
impl<'i> Freeze for ImmutableValue<'i>
impl<'i> RefUnwindSafe for ImmutableValue<'i>
impl<'i> !Send for ImmutableValue<'i>
impl<'i> !Sync for ImmutableValue<'i>
impl<'i> Unpin for ImmutableValue<'i>
impl<'i> UnwindSafe for ImmutableValue<'i>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)