Struct tendermint_testgen::commit::Commit [−][src]
pub struct Commit { pub header: Option<Header>, pub votes: Option<Vec<Vote>>, pub round: Option<u32>, }
Fields
header: Option<Header>
votes: Option<Vec<Vote>>
round: Option<u32>
Implementations
Make a new commit using default votes produced from the header.
Make a new commit using explicit votes.
Generate commit votes from all validators in the header. This function will panic if the header is not present
Get a mutable reference to the vote of the given validator. This function will panic if the votes or the validator vote is not present
Get a mutable reference to the vote at the given index This function will panic if the votes or the vote at index is not present
Trait Implementations
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
Merge this companion with the another, default one. The options present in this object will override those in the default one. Read more
Generate the complex object from this companion object.
Generate and serialize the complex object
Parses arguments until the given parser is exhausted or until an error is encountered. Read more
Returns the subcommand instance, if present. Read more
Returns the name of a parsed command, if present. Read more
Returns whether the user supplied a “help” option to request usage information about the program or any contained subcommands. Read more
Parses options for the named command.
Returns a string showing usage and help for each supported option. Read more
Returns a string showing usage and help for this options instance. Read more
Returns a string listing available commands and help text. Read more
Returns a usage string for the named command. Read more
Returns a listing of available commands and help text. Read more
Parses arguments received from the command line. Read more
Parses arguments from the environment. Read more
Parses arguments from the environment, using the default parsing style. Read more
Auto Trait Implementations
impl RefUnwindSafe for Commit
impl UnwindSafe for Commit
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V