Enum stacks_rpc_client::clarity::vm::variables::NativeVariables
pub enum NativeVariables {
ContractCaller,
TxSender,
BlockHeight,
BurnBlockHeight,
NativeNone,
NativeTrue,
NativeFalse,
TotalLiquidMicroSTX,
Regtest,
TxSponsor,
Mainnet,
ChainId,
}
Variants§
ContractCaller
TxSender
BlockHeight
BurnBlockHeight
NativeNone
NativeTrue
NativeFalse
TotalLiquidMicroSTX
Regtest
TxSponsor
Mainnet
ChainId
Implementations§
§impl NativeVariables
impl NativeVariables
pub const ALL: &'static [NativeVariables] = _
pub const ALL_NAMES: &'static [&'static str] = _
pub fn lookup_by_name(name: &str) -> Option<NativeVariables>
pub fn get_version(&self) -> ClarityVersion
pub fn get_name(&self) -> String
pub fn get_name_str(&self) -> &'static str
§impl NativeVariables
impl NativeVariables
pub fn lookup_by_name_at_version( name: &str, version: &ClarityVersion ) -> Option<NativeVariables>
Trait Implementations§
§impl Clone for NativeVariables
impl Clone for NativeVariables
§fn clone(&self) -> NativeVariables
fn clone(&self) -> NativeVariables
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 more§impl Debug for NativeVariables
impl Debug for NativeVariables
§impl<'de> Deserialize<'de> for NativeVariables
impl<'de> Deserialize<'de> for NativeVariables
§fn deserialize<__D>(
__deserializer: __D
) -> Result<NativeVariables, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<NativeVariables, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for NativeVariables
impl Display for NativeVariables
§impl Hash for NativeVariables
impl Hash for NativeVariables
§impl PartialEq for NativeVariables
impl PartialEq for NativeVariables
§fn eq(&self, other: &NativeVariables) -> bool
fn eq(&self, other: &NativeVariables) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for NativeVariables
impl Serialize for NativeVariables
§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 Copy for NativeVariables
impl Eq for NativeVariables
impl StructuralEq for NativeVariables
impl StructuralPartialEq for NativeVariables
Auto Trait Implementations§
impl RefUnwindSafe for NativeVariables
impl Send for NativeVariables
impl Sync for NativeVariables
impl Unpin for NativeVariables
impl UnwindSafe for NativeVariables
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.