Enum NetworkType
pub enum NetworkType {
Devnet,
Testnet,
Mainnet,
}Expand description
High-level network profile for Lyquor deployments.
This enum is shared across TLS, oracle key derivation and other places that need to distinguish devnet/testnet/mainnet behavior.
Variants§
Implementations§
§impl NetworkType
impl NetworkType
pub fn default_network_domain(&self) -> &'static str
pub fn default_network_domain(&self) -> &'static str
Return the built-in network domain used when config does not override it.
pub fn default_submitter_key(&self) -> Option<&'static str>
pub fn default_submitter_key(&self) -> Option<&'static str>
Return the built-in submitter key for local development profiles.
Production profiles intentionally have no built-in signer.
Trait Implementations§
§impl Clone for NetworkType
impl Clone for NetworkType
§fn clone(&self) -> NetworkType
fn clone(&self) -> NetworkType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for NetworkType
impl Debug for NetworkType
§impl Default for NetworkType
impl Default for NetworkType
§fn default() -> NetworkType
fn default() -> NetworkType
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for NetworkType
impl<'de> Deserialize<'de> for NetworkType
§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
§impl FromStr for NetworkType
impl FromStr for NetworkType
§impl Ord for NetworkType
impl Ord for NetworkType
§fn cmp(&self, other: &NetworkType) -> Ordering
fn cmp(&self, other: &NetworkType) -> Ordering
1.21.0 (const: unstable) · 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
§impl PartialEq for NetworkType
impl PartialEq for NetworkType
§impl PartialOrd for NetworkType
impl PartialOrd for NetworkType
§impl Serialize for NetworkType
impl Serialize for NetworkType
impl Copy for NetworkType
impl Eq for NetworkType
impl StructuralPartialEq for NetworkType
Auto Trait Implementations§
impl Freeze for NetworkType
impl RefUnwindSafe for NetworkType
impl Send for NetworkType
impl Sync for NetworkType
impl Unpin for NetworkType
impl UnsafeUnpin for NetworkType
impl UnwindSafe for NetworkType
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.