Struct soroban_env_guest::xdr::ScpNomination
pub struct ScpNomination {
pub quorum_set_hash: Hash,
pub votes: VecM<Value, _>,
pub accepted: VecM<Value, _>,
}
Fields
quorum_set_hash: Hash
votes: VecM<Value, _>
accepted: VecM<Value, _>
Trait Implementations
impl Clone for ScpNomination
impl Clone for ScpNomination
fn clone(&self) -> ScpNomination
fn clone(&self) -> ScpNomination
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for ScpNomination
impl Debug for ScpNomination
impl Hash for ScpNomination
impl Hash for ScpNomination
impl Ord for ScpNomination
impl Ord for ScpNomination
fn cmp(&self, other: &ScpNomination) -> Ordering
fn cmp(&self, other: &ScpNomination) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialEq<ScpNomination> for ScpNomination
impl PartialEq<ScpNomination> for ScpNomination
fn eq(&self, other: &ScpNomination) -> bool
fn eq(&self, other: &ScpNomination) -> bool
impl PartialOrd<ScpNomination> for ScpNomination
impl PartialOrd<ScpNomination> for ScpNomination
fn partial_cmp(&self, other: &ScpNomination) -> Option<Ordering>
fn partial_cmp(&self, other: &ScpNomination) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ScpNomination
impl ReadXdr for ScpNomination
impl StructuralEq for ScpNomination
impl StructuralPartialEq for ScpNomination
impl WriteXdr for ScpNomination
Auto Trait Implementations
impl RefUnwindSafe for ScpNomination
impl Send for ScpNomination
impl Sync for ScpNomination
impl Unpin for ScpNomination
impl UnwindSafe for ScpNomination
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more