Struct avalanche_types::choices::test_decidable::TestDecidable
source · [−]pub struct TestDecidable {
pub id: Id,
pub status: Box<Status>,
pub accept_result: Result<()>,
pub reject_result: Result<()>,
}
Fields
id: Id
status: Box<Status>
“Status” enum uses String so cannot implement/derive “Copy” to use “Cell” ref. https://stackoverflow.com/questions/38215753/how-do-i-implement-copy-and-clone-for-a-type-that-contains-a-string-or-any-type
Use “Box” instead to overwrite.
accept_result: Result<()>
reject_result: Result<()>
Implementations
sourceimpl TestDecidable
impl TestDecidable
sourceimpl TestDecidable
impl TestDecidable
Trait Implementations
sourceimpl Clone for TestDecidable
impl Clone for TestDecidable
sourcefn clone(&self) -> TestDecidable
fn clone(&self) -> TestDecidable
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 more
sourceimpl Debug for TestDecidable
impl Debug for TestDecidable
sourceimpl Decidable for TestDecidable
impl Decidable for TestDecidable
Auto Trait Implementations
impl RefUnwindSafe for TestDecidable
impl Send for TestDecidable
impl Sync for TestDecidable
impl Unpin for TestDecidable
impl UnwindSafe for TestDecidable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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