Enum svc_storage::grpc::server::parcel::ParcelStatus
source · #[repr(i32)]pub enum ParcelStatus {
Notdroppedoff = 0,
Droppedoff = 1,
Enroute = 2,
Arrived = 3,
Pickedup = 4,
Complete = 5,
}
Expand description
Parcel Status Enum
Variants§
Notdroppedoff = 0
Has not been dropped off
Droppedoff = 1
Has been dropped off
Enroute = 2
En Route (could be a number of vertiport hops)
Arrived = 3
Arrived at destination port
Pickedup = 4
Picked up by recipient
Complete = 5
Transaction complete & parties have been notified of the completed transaction
Implementations§
source§impl ParcelStatus
impl ParcelStatus
source§impl ParcelStatus
impl ParcelStatus
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ParcelStatus
impl Clone for ParcelStatus
source§fn clone(&self) -> ParcelStatus
fn clone(&self) -> ParcelStatus
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 ParcelStatus
impl Debug for ParcelStatus
source§impl Default for ParcelStatus
impl Default for ParcelStatus
source§fn default() -> ParcelStatus
fn default() -> ParcelStatus
Returns the “default value” for a type. Read more
source§impl From<ParcelStatus> for i32
impl From<ParcelStatus> for i32
source§fn from(value: ParcelStatus) -> i32
fn from(value: ParcelStatus) -> i32
Converts to this type from the input type.
source§impl FromPrimitive for ParcelStatus
impl FromPrimitive for ParcelStatus
source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§impl Hash for ParcelStatus
impl Hash for ParcelStatus
source§impl Ord for ParcelStatus
impl Ord for ParcelStatus
source§fn cmp(&self, other: &ParcelStatus) -> Ordering
fn cmp(&self, other: &ParcelStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ParcelStatus
impl PartialEq for ParcelStatus
source§fn eq(&self, other: &ParcelStatus) -> bool
fn eq(&self, other: &ParcelStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ParcelStatus
impl PartialOrd for ParcelStatus
source§fn partial_cmp(&self, other: &ParcelStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &ParcelStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ParcelStatus
impl TryFrom<i32> for ParcelStatus
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<ParcelStatus, DecodeError>
fn try_from(value: i32) -> Result<ParcelStatus, DecodeError>
Performs the conversion.
impl Copy for ParcelStatus
impl Eq for ParcelStatus
impl StructuralEq for ParcelStatus
impl StructuralPartialEq for ParcelStatus
Auto Trait Implementations§
impl RefUnwindSafe for ParcelStatus
impl Send for ParcelStatus
impl Sync for ParcelStatus
impl Unpin for ParcelStatus
impl UnwindSafe for ParcelStatus
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
§impl<T> CallHasher for T
impl<T> CallHasher for T
§impl<T> CloneAny for T
impl<T> CloneAny for T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§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