[−][src]Struct tendermint_testgen::commit::Commit
Fields
header: Option<Header>
votes: Option<Vec<Vote>>
round: Option<u32>
Implementations
impl Commit
[src]
pub fn new(header: Header, round: u32) -> Self
[src]
Make a new commit using default votes produced from the header.
pub fn new_with_votes(header: Header, round: u32, votes: Vec<Vote>) -> Self
[src]
Make a new commit using explicit votes.
pub fn header(mut self: Self, header: Header) -> Self
[src]
pub fn votes(mut self: Self, votes: Vec<Vote>) -> Self
[src]
pub fn round(mut self: Self, round: u32) -> Self
[src]
pub fn generate_default_votes(mut self: Self) -> Self
[src]
Generate commit votes from all validators in the header. This function will panic if the header is not present
pub fn vote_of_validator(&mut self, id: &str) -> &mut Vote
[src]
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
pub fn vote_at_index(&mut self, index: usize) -> &mut Vote
[src]
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
impl Clone for Commit
[src]
impl Debug for Commit
[src]
impl<'de> Deserialize<'de> for Commit
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl FromStr for Commit
[src]
type Err = SimpleError
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Generator<Commit> for Commit
[src]
pub fn merge_with_default(self, other: Self) -> Self
[src]
pub fn generate(&self) -> Result<Commit, SimpleError>
[src]
pub fn encode(&self) -> Result<String, SimpleError>
[src]
impl Options for Commit
[src]
pub fn parse<__S: AsRef<str>>(
_parser: &mut Parser<'_, __S>
) -> Result<Self, Error>
[src]
_parser: &mut Parser<'_, __S>
) -> Result<Self, Error>
pub fn command(&self) -> Option<&dyn Options>
[src]
pub fn command_name(&self) -> Option<&'static str>
[src]
pub fn help_requested(&self) -> bool
[src]
pub fn parse_command<__S: AsRef<str>>(
name: &str,
_parser: &mut Parser<'_, __S>
) -> Result<Self, Error>
[src]
name: &str,
_parser: &mut Parser<'_, __S>
) -> Result<Self, Error>
pub fn usage() -> &'static str
[src]
pub fn self_usage(&self) -> &'static str
[src]
pub fn command_list() -> Option<&'static str>
[src]
pub fn command_usage(_name: &str) -> Option<&'static str>
[src]
pub fn self_command_list(&self) -> Option<&'static str>
[src]
pub fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error> where
S: AsRef<str>,
[src]
S: AsRef<str>,
pub fn parse_args_or_exit(style: ParsingStyle) -> Self
[src]
pub fn parse_args_default_or_exit() -> Self
[src]
pub fn parse_args_default<S>(args: &[S]) -> Result<Self, Error> where
S: AsRef<str>,
[src]
S: AsRef<str>,
impl Serialize for Commit
[src]
Auto Trait Implementations
impl RefUnwindSafe for Commit
[src]
impl Send for Commit
[src]
impl Sync for Commit
[src]
impl Unpin for Commit
[src]
impl UnwindSafe for Commit
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,