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: StatePairreason: 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
sourceimpl ActivityState
impl ActivityState
Trait Implementations
sourceimpl Clone for ActivityState
impl Clone for ActivityState
sourcefn clone(&self) -> ActivityState
fn clone(&self) -> ActivityState
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 ActivityState
impl Debug for ActivityState
sourceimpl<'de> Deserialize<'de> for ActivityState
impl<'de> Deserialize<'de> for ActivityState
sourcefn 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
sourceimpl From<&'_ StatePair> for ActivityState
impl From<&'_ StatePair> for ActivityState
sourceimpl From<StatePair> for ActivityState
impl From<StatePair> for ActivityState
sourceimpl PartialEq<ActivityState> for ActivityState
impl PartialEq<ActivityState> for ActivityState
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &ActivityState) -> bool
fn ne(&self, other: &ActivityState) -> bool
This method tests for !=.
sourceimpl 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more