Enum air_parser::ast::ImmutableValue
source · pub enum ImmutableValue<'i> {
InitPeerId,
LastError(Option<LambdaAST<'i>>),
Timestamp,
TTL,
Literal(&'i str),
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
LastError(Option<LambdaAST<'i>>)
Timestamp
TTL
Literal(&'i str)
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<ImmutableValue<'i>> for ImmutableValue<'i>
impl<'i> PartialEq<ImmutableValue<'i>> 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 ==
.