pub struct ProtocolConfigs {
pub protocol_version: u64,
pub feature_flags: Vec<ProtocolConfigFeatureFlag>,
pub configs: Vec<ProtocolConfigAttr>,
}
Expand description
Information about the configuration of the protocol. Constants that control how the chain operates. These can only change during protocol upgrades which happen on epoch boundaries.
Fields§
§protocol_version: u64
The protocol is not required to change on every epoch boundary, so the protocol version tracks which change to the protocol these configs are from.
feature_flags: Vec<ProtocolConfigFeatureFlag>
List all available feature flags and their values. Feature flags are a form of boolean configuration that are usually used to gate features while they are in development. Once a flag has been enabled, it is rare for it to be disabled.
configs: Vec<ProtocolConfigAttr>
List all available configurations and their values. These configurations can take any value (but they will all be represented in string form), and do not include feature flags.
Trait Implementations§
Source§impl Clone for ProtocolConfigs
impl Clone for ProtocolConfigs
Source§fn clone(&self) -> ProtocolConfigs
fn clone(&self) -> ProtocolConfigs
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 Debug for ProtocolConfigs
impl Debug for ProtocolConfigs
Source§impl<'de> Deserialize<'de> for ProtocolConfigs
impl<'de> Deserialize<'de> for ProtocolConfigs
Source§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
Source§impl QueryFragment for ProtocolConfigs
impl QueryFragment for ProtocolConfigs
Source§type SchemaType = ProtocolConfigs
type SchemaType = ProtocolConfigs
The type in a schema that this
QueryFragment
representsSource§type VariablesFields = ()
type VariablesFields = ()
The variables that are required to execute this
QueryFragment
Auto Trait Implementations§
impl Freeze for ProtocolConfigs
impl RefUnwindSafe for ProtocolConfigs
impl Send for ProtocolConfigs
impl Sync for ProtocolConfigs
impl Unpin for ProtocolConfigs
impl UnwindSafe for ProtocolConfigs
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moreSource§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