pub struct AvCabin<'a> {
pub name: &'a str,
pub state: &'a str,
pub is_sub_cabin: bool,
pub raw_text: &'a str,
}Expand description
The cabins of an AvFlight.
Fields§
§name: &'a str§state: &'a str§is_sub_cabin: bool§raw_text: &'a strImplementations§
Source§impl<'a> AvCabin<'a>
impl<'a> AvCabin<'a>
Sourcepub fn is_num_state(&self) -> bool
pub fn is_num_state(&self) -> bool
Return whether the seat of the cabin is number. such as 1-9.
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Return whether the seat of the cabin is available. such as 1-9,A.
Sourcepub fn is_soldout(&self) -> bool
pub fn is_soldout(&self) -> bool
Return whether the seat of the cabin is soldout. it’s not available and locked.
Sourcepub fn seat_quantity(&self) -> Option<u8>
pub fn seat_quantity(&self) -> Option<u8>
Return quantity of the seat of the cabin. when it’s number, return the number. when it’s ‘A’,return 9.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AvCabin<'a>
impl<'a> RefUnwindSafe for AvCabin<'a>
impl<'a> Send for AvCabin<'a>
impl<'a> Sync for AvCabin<'a>
impl<'a> Unpin for AvCabin<'a>
impl<'a> UnwindSafe for AvCabin<'a>
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