pub struct UiVoteState { /* private fields */ }๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Expand description
A duplicate representation of VoteState for pretty JSON serialization
Trait Implementationsยง
Sourceยงimpl Debug for UiVoteState
impl Debug for UiVoteState
Sourceยงimpl Default for UiVoteState
impl Default for UiVoteState
Sourceยงfn default() -> UiVoteState
fn default() -> UiVoteState
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'de> Deserialize<'de> for UiVoteState
impl<'de> Deserialize<'de> for UiVoteState
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 PartialEq for UiVoteState
impl PartialEq for UiVoteState
Sourceยงimpl Serialize for UiVoteState
impl Serialize for UiVoteState
impl Eq for UiVoteState
impl StructuralPartialEq for UiVoteState
Auto Trait Implementationsยง
impl Freeze for UiVoteState
impl RefUnwindSafe for UiVoteState
impl Send for UiVoteState
impl Sync for UiVoteState
impl Unpin for UiVoteState
impl UnsafeUnpin for UiVoteState
impl UnwindSafe for UiVoteState
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> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more