Struct ya_client_model::activity::activity_state::ActivityState
source · pub struct ActivityState {
pub state: StatePair,
pub reason: Option<String>,
pub error_message: Option<String>,
}Fields§
§state: StatePair§reason: Option<String>Reason for Activity termination (specified when Activity in Terminated state).
error_message: Option<String>If error caused state change - error message shall be provided.
Implementations§
Trait Implementations§
source§impl Clone for ActivityState
impl Clone for ActivityState
source§fn clone(&self) -> ActivityState
fn clone(&self) -> ActivityState
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 ActivityState
impl Debug for ActivityState
source§impl<'de> Deserialize<'de> for ActivityState
impl<'de> Deserialize<'de> for ActivityState
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 From<&StatePair> for ActivityState
impl From<&StatePair> for ActivityState
source§impl From<StatePair> for ActivityState
impl From<StatePair> for ActivityState
source§impl PartialEq for ActivityState
impl PartialEq for ActivityState
source§fn eq(&self, other: &ActivityState) -> bool
fn eq(&self, other: &ActivityState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ActivityState
impl Serialize for ActivityState
impl StructuralPartialEq for ActivityState
Auto Trait Implementations§
impl RefUnwindSafe for ActivityState
impl Send for ActivityState
impl Sync for ActivityState
impl Unpin for ActivityState
impl UnwindSafe for ActivityState
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