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§
source§impl TestDecidable
impl TestDecidable
source§impl TestDecidable
impl TestDecidable
Trait Implementations§
source§impl Clone for TestDecidable
impl Clone for TestDecidable
source§fn clone(&self) -> TestDecidable
fn clone(&self) -> TestDecidable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TestDecidable
impl Debug for TestDecidable
source§impl 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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request