pub struct StateReason {
pub code: Option<String>,
pub message: Option<String>,
pub user_details: Option<String>,
}Expand description
The reason a spoke is inactive.
This type is not used in any activity, and only used as part of another schema.
Fields§
§code: Option<String>The code associated with this reason.
message: Option<String>Human-readable details about this reason.
user_details: Option<String>Additional information provided by the user in the RejectSpoke call.
Trait Implementations§
Source§impl Clone for StateReason
impl Clone for StateReason
Source§fn clone(&self) -> StateReason
fn clone(&self) -> StateReason
Returns a duplicate 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 StateReason
impl Debug for StateReason
Source§impl Default for StateReason
impl Default for StateReason
Source§fn default() -> StateReason
fn default() -> StateReason
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StateReason
impl<'de> Deserialize<'de> for StateReason
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 Serialize for StateReason
impl Serialize for StateReason
impl Part for StateReason
Auto Trait Implementations§
impl Freeze for StateReason
impl RefUnwindSafe for StateReason
impl Send for StateReason
impl Sync for StateReason
impl Unpin for StateReason
impl UnwindSafe for StateReason
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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