Struct lambda_starknet_api::core::ContractAddress
source · pub struct ContractAddress(pub PatriciaKey);
Expand description
The address of a contract, used for example in StateDiff, DeclareTransaction, and BlockHeader.
Tuple Fields§
§0: PatriciaKey
Trait Implementations§
source§impl Clone for ContractAddress
impl Clone for ContractAddress
source§fn clone(&self) -> ContractAddress
fn clone(&self) -> ContractAddress
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 Debug for ContractAddress
impl Debug for ContractAddress
source§impl Default for ContractAddress
impl Default for ContractAddress
source§fn default() -> ContractAddress
fn default() -> ContractAddress
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ContractAddress
impl<'de> Deserialize<'de> for ContractAddress
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 Hash for ContractAddress
impl Hash for ContractAddress
source§impl Ord for ContractAddress
impl Ord for ContractAddress
source§fn cmp(&self, other: &ContractAddress) -> Ordering
fn cmp(&self, other: &ContractAddress) -> Ordering
1.21.0 · 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
source§impl PartialEq<ContractAddress> for ContractAddress
impl PartialEq<ContractAddress> for ContractAddress
source§fn eq(&self, other: &ContractAddress) -> bool
fn eq(&self, other: &ContractAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ContractAddress> for ContractAddress
impl PartialOrd<ContractAddress> for ContractAddress
source§fn partial_cmp(&self, other: &ContractAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &ContractAddress) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ContractAddress
impl Serialize for ContractAddress
source§impl TryFrom<StarkFelt> for ContractAddress
impl TryFrom<StarkFelt> for ContractAddress
impl Copy for ContractAddress
impl Eq for ContractAddress
impl StructuralEq for ContractAddress
impl StructuralPartialEq for ContractAddress
Auto Trait Implementations§
impl RefUnwindSafe for ContractAddress
impl Send for ContractAddress
impl Sync for ContractAddress
impl Unpin for ContractAddress
impl UnwindSafe for ContractAddress
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<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.