Struct snarkvm_console_program::Struct
source · pub struct Struct<N: Network> { /* private fields */ }
Implementations§
source§impl<N: Network> Struct<N>
impl<N: Network> Struct<N>
sourcepub const fn name(&self) -> &Identifier<N>
pub const fn name(&self) -> &Identifier<N>
Returns the name of the struct.
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.
Trait Implementations§
source§impl<'de, N: Network> Deserialize<'de> for Struct<N>
impl<'de, N: Network> Deserialize<'de> for Struct<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 from a string or bytes.
source§impl<N: Network> Parser for Struct<N>
impl<N: Network> Parser for Struct<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<Struct<N>> for Struct<N>
impl<N: PartialEq + Network> PartialEq<Struct<N>> for Struct<N>
impl<N: Eq + Network> Eq for Struct<N>
impl<N: Network> StructuralEq for Struct<N>
impl<N: Network> StructuralPartialEq for Struct<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for Struct<N>where <N as Environment>::Field: RefUnwindSafe,
impl<N> Send for Struct<N>
impl<N> Sync for Struct<N>
impl<N> Unpin for Struct<N>where <N as Environment>::Field: Unpin,
impl<N> UnwindSafe for Struct<N>where <N as Environment>::Field: UnwindSafe,
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 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.