Struct snarkvm_console_program::StructType
source · pub struct StructType<N: Network> { /* private fields */ }
Implementations§
source§impl<N: Network> StructType<N>
impl<N: Network> StructType<N>
sourcepub const fn name(&self) -> &Identifier<N>
pub const fn name(&self) -> &Identifier<N>
Returns the name of the struct type.
sourcepub const fn members(&self) -> &IndexMap<Identifier<N>, PlaintextType<N>>
pub const fn members(&self) -> &IndexMap<Identifier<N>, PlaintextType<N>>
Returns the members of the struct type.
Trait Implementations§
source§impl<N: Clone + Network> Clone for StructType<N>
impl<N: Clone + Network> Clone for StructType<N>
source§fn clone(&self) -> StructType<N>
fn clone(&self) -> StructType<N>
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<N: Network> Debug for StructType<N>
impl<N: Network> Debug for StructType<N>
source§impl<'de, N: Network> Deserialize<'de> for StructType<N>
impl<'de, N: Network> Deserialize<'de> for StructType<N>
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes the struct type from a string or bytes.
source§impl<N: Network> Display for StructType<N>
impl<N: Network> Display for StructType<N>
source§impl<N: Network> FromBytes for StructType<N>
impl<N: Network> FromBytes for StructType<N>
source§impl<N: Network> FromStr for StructType<N>
impl<N: Network> FromStr for StructType<N>
source§impl<N: Network> Parser for StructType<N>
impl<N: Network> Parser for StructType<N>
source§fn parse(string: &str) -> ParserResult<'_, Self>
fn parse(string: &str) -> ParserResult<'_, Self>
Parses a struct as:
struct message:
owner as address;
amount as u64;
source§impl<N: PartialEq + Network> PartialEq for StructType<N>
impl<N: PartialEq + Network> PartialEq for StructType<N>
source§fn eq(&self, other: &StructType<N>) -> bool
fn eq(&self, other: &StructType<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<N: Network> Serialize for StructType<N>
impl<N: Network> Serialize for StructType<N>
source§impl<N: Network> ToBytes for StructType<N>
impl<N: Network> ToBytes for StructType<N>
source§impl<N: Network> TypeName for StructType<N>
impl<N: Network> TypeName for StructType<N>
impl<N: Eq + Network> Eq for StructType<N>
impl<N: Network> StructuralPartialEq for StructType<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for StructType<N>
impl<N> Send for StructType<N>
impl<N> Sync for StructType<N>
impl<N> Unpin for StructType<N>
impl<N> UnwindSafe for StructType<N>
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<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
fn take_from_value<D>(
value: &mut Value,
field: &str
) -> Result<T, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.