#[non_exhaustive]pub struct DsoInfo {
pub dso_party_id: String,
pub voting_threshold: u32,
pub latest_mining_round: ContractWithState,
pub amulet_rules: ContractWithState,
pub dso_rules: ContractWithState,
pub sv_node_states: Vec<ContractWithState>,
pub initial_round: Option<String>,
}Expand description
What the DSO is and the contracts that say how it runs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dso_party_id: StringThe party that represents the DSO as a whole.
voting_threshold: u32How many Super Validators must agree for a vote to pass.
latest_mining_round: ContractWithStateThe OpenMiningRound with the highest round number. It may not have
opened yet: see MiningRounds::latest_open for the one to use.
amulet_rules: ContractWithStateThe AmuletRules contract.
dso_rules: ContractWithStateThe DsoRules contract.
sv_node_states: Vec<ContractWithState>One SvNodeState contract per Super Validator in the DSO rules.
initial_round: Option<String>The round the network started from, where Scan reports it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DsoInfo
impl<'de> Deserialize<'de> for DsoInfo
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
Auto Trait Implementations§
impl Forget for DsoInfo
impl Freeze for DsoInfowhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<ContractWithState>: Freeze,
impl Move for DsoInfo
impl RefUnwindSafe for DsoInfo
impl Send for DsoInfo
impl Sync for DsoInfo
impl Unpin for DsoInfo
impl UnsafeUnpin for DsoInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<ContractWithState>: UnsafeUnpin,
impl UnwindSafe for DsoInfo
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request