pub struct FlightId(/* private fields */);Expand description
Identifier of a single flight.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlightId
impl<'de> Deserialize<'de> for FlightId
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
impl Eq for FlightId
Source§impl From<&str> for FlightId
Reads an identifier that came from outside — a URL path, say.
impl From<&str> for FlightId
Reads an identifier that came from outside — a URL path, say.
Deliberately not validated. This type identifies a flight; it does not certify that one exists, and the only thing done with an identifier that names nothing is to say so. Rejecting a malformed string here would turn “no such flight” into “bad request”, which tells the caller less about what actually happened.
Source§impl Ord for FlightId
impl Ord for FlightId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for FlightId
impl PartialOrd for FlightId
impl StructuralPartialEq for FlightId
Auto Trait Implementations§
impl Freeze for FlightId
impl RefUnwindSafe for FlightId
impl Send for FlightId
impl Sync for FlightId
impl Unpin for FlightId
impl UnsafeUnpin for FlightId
impl UnwindSafe for FlightId
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