pub enum RegisterType<N: Network> {
Plaintext(PlaintextType<N>),
Record(Identifier<N>),
ExternalRecord(Locator<N>),
}Variants§
Plaintext(PlaintextType<N>)
A plaintext type.
Record(Identifier<N>)
A record name.
ExternalRecord(Locator<N>)
A record locator.
Trait Implementations§
source§impl<N: Clone + Network> Clone for RegisterType<N>
impl<N: Clone + Network> Clone for RegisterType<N>
source§fn clone(&self) -> RegisterType<N>
fn clone(&self) -> RegisterType<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 RegisterType<N>
impl<N: Network> Debug for RegisterType<N>
source§impl<'de, N: Network> Deserialize<'de> for RegisterType<N>
impl<'de, N: Network> Deserialize<'de> for RegisterType<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 register type from a string or bytes.
source§impl<N: Network> Display for RegisterType<N>
impl<N: Network> Display for RegisterType<N>
source§impl<N: Network> EnumIndex for RegisterType<N>
impl<N: Network> EnumIndex for RegisterType<N>
fn enum_index(&self) -> usize
source§impl<N: Network> FromBytes for RegisterType<N>
impl<N: Network> FromBytes for RegisterType<N>
source§impl<N: Network> FromStr for RegisterType<N>
impl<N: Network> FromStr for RegisterType<N>
source§impl<N: Network> Parser for RegisterType<N>
impl<N: Network> Parser for RegisterType<N>
source§fn parse(string: &str) -> ParserResult<'_, Self>
fn parse(string: &str) -> ParserResult<'_, Self>
Parses a string into a register type.
source§impl<N: PartialEq + Network> PartialEq<RegisterType<N>> for RegisterType<N>
impl<N: PartialEq + Network> PartialEq<RegisterType<N>> for RegisterType<N>
source§fn eq(&self, other: &RegisterType<N>) -> bool
fn eq(&self, other: &RegisterType<N>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<N: Network> Serialize for RegisterType<N>
impl<N: Network> Serialize for RegisterType<N>
source§impl<N: Network> ToBytes for RegisterType<N>
impl<N: Network> ToBytes for RegisterType<N>
impl<N: Copy + Network> Copy for RegisterType<N>
impl<N: Eq + Network> Eq for RegisterType<N>
impl<N: Network> StructuralEq for RegisterType<N>
impl<N: Network> StructuralPartialEq for RegisterType<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for RegisterType<N>where <N as Environment>::Field: RefUnwindSafe,
impl<N> Send for RegisterType<N>
impl<N> Sync for RegisterType<N>
impl<N> Unpin for RegisterType<N>where <N as Environment>::Field: Unpin,
impl<N> UnwindSafe for RegisterType<N>where <N as Environment>::Field: UnwindSafe,
Blanket Implementations§
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>,
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.§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