#[repr(i32)]pub enum FlightStatus {
Ready = 0,
Boarding = 1,
InFlight = 2,
Finished = 3,
Cancelled = 4,
Draft = 5,
}
Expand description
Flight Status Enum
Variants§
Ready = 0
READY
Boarding = 1
BOARDING
InFlight = 2
IN_FLIGHT
Finished = 3
FINISHED
Cancelled = 4
CANCELLED
Draft = 5
DRAFT
Implementations§
§impl FlightStatus
impl FlightStatus
§impl FlightStatus
impl FlightStatus
pub 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.
pub fn from_str_name(value: &str) -> Option<FlightStatus>
pub fn from_str_name(value: &str) -> Option<FlightStatus>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for FlightStatus
impl Clone for FlightStatus
§fn clone(&self) -> FlightStatus
fn clone(&self) -> FlightStatus
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 more§impl Debug for FlightStatus
impl Debug for FlightStatus
§impl Default for FlightStatus
impl Default for FlightStatus
§fn default() -> FlightStatus
fn default() -> FlightStatus
Returns the “default value” for a type. Read more
§impl FromPrimitive for FlightStatus
impl FromPrimitive for FlightStatus
§fn from_i64(n: i64) -> Option<FlightStatus>
fn from_i64(n: i64) -> Option<FlightStatus>
Converts an
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.§fn from_u64(n: u64) -> Option<FlightStatus>
fn from_u64(n: u64) -> Option<FlightStatus>
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 more§impl Hash for FlightStatus
impl Hash for FlightStatus
§impl Ord for FlightStatus
impl Ord for FlightStatus
§impl PartialEq for FlightStatus
impl PartialEq for FlightStatus
§fn eq(&self, other: &FlightStatus) -> bool
fn eq(&self, other: &FlightStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for FlightStatus
impl PartialOrd for FlightStatus
§fn partial_cmp(&self, other: &FlightStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &FlightStatus) -> 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 more§impl TryFrom<i32> for FlightStatus
impl TryFrom<i32> for FlightStatus
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
§fn try_from(value: i32) -> Result<FlightStatus, DecodeError>
fn try_from(value: i32) -> Result<FlightStatus, DecodeError>
Performs the conversion.
impl Copy for FlightStatus
impl Eq for FlightStatus
impl StructuralEq for FlightStatus
impl StructuralPartialEq for FlightStatus
Auto Trait Implementations§
impl RefUnwindSafe for FlightStatus
impl Send for FlightStatus
impl Sync for FlightStatus
impl Unpin for FlightStatus
impl UnwindSafe for FlightStatus
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<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