Struct snarkvm_console_program::RecordType
source · pub struct RecordType<N: Network> { /* private fields */ }Expand description
The declared layout for program data.
Implementations§
source§impl<N: Network> RecordType<N>
impl<N: Network> RecordType<N>
sourcepub const fn name(&self) -> &Identifier<N>
pub const fn name(&self) -> &Identifier<N>
Returns the name of the record type.
sourcepub const fn owner(&self) -> PublicOrPrivate
pub const fn owner(&self) -> PublicOrPrivate
Returns the visibility for the owner of the program record.
sourcepub const fn entries(&self) -> &IndexMap<Identifier<N>, EntryType<N>>
pub const fn entries(&self) -> &IndexMap<Identifier<N>, EntryType<N>>
Returns the entries of the record type.
Trait Implementations§
source§impl<N: Clone + Network> Clone for RecordType<N>
impl<N: Clone + Network> Clone for RecordType<N>
source§fn clone(&self) -> RecordType<N>
fn clone(&self) -> RecordType<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 RecordType<N>
impl<N: Network> Debug for RecordType<N>
source§impl<'de, N: Network> Deserialize<'de> for RecordType<N>
impl<'de, N: Network> Deserialize<'de> for RecordType<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 record type from a string or bytes.
source§impl<N: Network> Display for RecordType<N>
impl<N: Network> Display for RecordType<N>
source§impl<N: Network> FromBytes for RecordType<N>
impl<N: Network> FromBytes for RecordType<N>
source§impl<N: Network> FromStr for RecordType<N>
impl<N: Network> FromStr for RecordType<N>
source§impl<N: Network> Parser for RecordType<N>
impl<N: Network> Parser for RecordType<N>
source§fn parse(string: &str) -> ParserResult<'_, Self>
fn parse(string: &str) -> ParserResult<'_, Self>
Parses a record type as:
record message:
owner as address.private;
user_defined as u64.public;
source§impl<N: PartialEq + Network> PartialEq for RecordType<N>
impl<N: PartialEq + Network> PartialEq for RecordType<N>
source§fn eq(&self, other: &RecordType<N>) -> bool
fn eq(&self, other: &RecordType<N>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<N: Network> Serialize for RecordType<N>
impl<N: Network> Serialize for RecordType<N>
source§impl<N: Network> ToBytes for RecordType<N>
impl<N: Network> ToBytes for RecordType<N>
source§impl<N: Network> TypeName for RecordType<N>
impl<N: Network> TypeName for RecordType<N>
impl<N: Eq + Network> Eq for RecordType<N>
impl<N: Network> StructuralPartialEq for RecordType<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for RecordType<N>
impl<N> Send for RecordType<N>
impl<N> Sync for RecordType<N>
impl<N> Unpin for RecordType<N>
impl<N> UnwindSafe for RecordType<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.