Enum svc_assets::rest::structs::AssetStatus
source · pub enum AssetStatus {
Available,
Unavailable,
Emergency,
}
Expand description
Status of an asset.
Variants§
Available
The asset is available for use.
The asset is unavailable for use.
Emergency
The asset is only available for emergencies.
Trait Implementations§
source§impl Clone for AssetStatus
impl Clone for AssetStatus
source§fn clone(&self) -> AssetStatus
fn clone(&self) -> AssetStatus
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 AssetStatus
impl Debug for AssetStatus
source§impl<'de> Deserialize<'de> for AssetStatus
impl<'de> Deserialize<'de> for AssetStatus
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 PartialEq<AssetStatus> for AssetStatus
impl PartialEq<AssetStatus> for AssetStatus
source§fn eq(&self, other: &AssetStatus) -> bool
fn eq(&self, other: &AssetStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssetStatus
impl Serialize for AssetStatus
source§impl<'__s> ToSchema<'__s> for AssetStatus
impl<'__s> ToSchema<'__s> for AssetStatus
impl Copy for AssetStatus
impl Eq for AssetStatus
impl StructuralEq for AssetStatus
impl StructuralPartialEq for AssetStatus
Auto Trait Implementations§
impl RefUnwindSafe for AssetStatus
impl Send for AssetStatus
impl Sync for AssetStatus
impl Unpin for AssetStatus
impl UnwindSafe for AssetStatus
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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