pub struct ContractName(pub String);Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl BorshDeserialize for ContractName
impl BorshDeserialize for ContractName
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ContractName
impl BorshSerialize for ContractName
Source§impl Clone for ContractName
impl Clone for ContractName
Source§fn clone(&self) -> ContractName
fn clone(&self) -> ContractName
Returns a duplicate 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 ComposeSchema for ContractName
impl ComposeSchema for ContractName
Source§impl Debug for ContractName
impl Debug for ContractName
Source§impl Default for ContractName
impl Default for ContractName
Source§fn default() -> ContractName
fn default() -> ContractName
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContractName
impl<'de> Deserialize<'de> for ContractName
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 ContractName
impl Display for ContractName
Source§impl Hash for ContractName
impl Hash for ContractName
Source§impl Ord for ContractName
impl Ord for ContractName
Source§fn cmp(&self, other: &ContractName) -> Ordering
fn cmp(&self, other: &ContractName) -> 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 for ContractName
impl PartialEq for ContractName
Source§impl PartialOrd for ContractName
impl PartialOrd for ContractName
Source§impl Serialize for ContractName
impl Serialize for ContractName
Source§impl ToSchema for ContractName
impl ToSchema for ContractName
impl Eq for ContractName
impl StructuralPartialEq for ContractName
Auto Trait Implementations§
impl Freeze for ContractName
impl RefUnwindSafe for ContractName
impl Send for ContractName
impl Sync for ContractName
impl Unpin for ContractName
impl UnsafeUnpin for ContractName
impl UnwindSafe for ContractName
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.