pub struct FlightObject {Show 28 fields
pub app_link_data: Option<AppLinkData>,
pub barcode: Option<Barcode>,
pub boarding_and_seating_info: Option<BoardingAndSeatingInfo>,
pub class_id: Option<String>,
pub class_reference: Option<FlightClass>,
pub disable_expiration_notification: Option<bool>,
pub grouping_info: Option<GroupingInfo>,
pub has_linked_device: Option<bool>,
pub has_users: Option<bool>,
pub hero_image: Option<Image>,
pub hex_background_color: Option<String>,
pub id: Option<String>,
pub image_modules_data: Option<Vec<ImageModuleData>>,
pub info_module_data: Option<InfoModuleData>,
pub kind: Option<String>,
pub links_module_data: Option<LinksModuleData>,
pub locations: Option<Vec<LatLongPoint>>,
pub messages: Option<Vec<Message>>,
pub pass_constraints: Option<PassConstraints>,
pub passenger_name: Option<String>,
pub reservation_info: Option<ReservationInfo>,
pub rotating_barcode: Option<RotatingBarcode>,
pub security_program_logo: Option<Image>,
pub smart_tap_redemption_value: Option<String>,
pub state: Option<String>,
pub text_modules_data: Option<Vec<TextModuleData>>,
pub valid_time_interval: Option<TimeInterval>,
pub version: Option<i64>,
}
Expand description
There is no detailed description.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get flightobject (response)
- insert flightobject (request|response)
- patch flightobject (request|response)
- update flightobject (request|response)
Fields§
§app_link_data: Option<AppLinkData>
Optional app or website link that will be displayed as a button on the front of the pass. If AppLinkData is provided for the corresponding class only object AppLinkData will be displayed.
barcode: Option<Barcode>
The barcode type and value.
boarding_and_seating_info: Option<BoardingAndSeatingInfo>
Passenger specific information about boarding and seating.
class_id: Option<String>
Required. The class associated with this object. The class must be of the same type as this object, must already exist, and must be approved. Class IDs should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you.
class_reference: Option<FlightClass>
A copy of the inherited fields of the parent class. These fields are retrieved during a GET.
disable_expiration_notification: Option<bool>
Indicates if notifications should explicitly be suppressed. If this field is set to true, regardless of the messages
field, expiration notifications to the user will be suppressed. By default, this field is set to false. Currently, this can only be set for Flights.
grouping_info: Option<GroupingInfo>
Information that controls how passes are grouped together.
has_linked_device: Option<bool>
Whether this object is currently linked to a single device. This field is set by the platform when a user saves the object, linking it to their device. Intended for use by select partners. Contact support for additional information.
has_users: Option<bool>
Indicates if the object has users. This field is set by the platform.
hero_image: Option<Image>
Optional banner image displayed on the front of the card. If none is present, hero image of the class, if present, will be displayed. If hero image of the class is also not present, nothing will be displayed.
hex_background_color: Option<String>
The background color for the card. If not set the dominant color of the hero image is used, and if no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex RGB triplet, such as #ffcc00
. You can also use the shorthand version of the RGB triplet which is #rgb, such as #fc0
.
id: Option<String>
Required. The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. The unique identifier should only include alphanumeric characters, ‘.’, ‘_’, or ‘-’.
image_modules_data: Option<Vec<ImageModuleData>>
Image module data. The maximum number of these fields displayed is 1 from object level and 1 for class object level.
info_module_data: Option<InfoModuleData>
Deprecated. Use textModulesData instead.
kind: Option<String>
Identifies what kind of resource this is. Value: the fixed string "walletobjects#flightObject"
.
links_module_data: Option<LinksModuleData>
Links module data. If links module data is also defined on the class, both will be displayed.
locations: Option<Vec<LatLongPoint>>
Note: This field is currently not supported to trigger geo notifications.
messages: Option<Vec<Message>>
An array of messages displayed in the app. All users of this object will receive its associated messages. The maximum number of these fields is 10.
pass_constraints: Option<PassConstraints>
Pass constraints for the object. Includes limiting NFC and screenshot behaviors.
passenger_name: Option<String>
Required. Passenger name as it would appear on the boarding pass. eg: “Dave M Gahan” or “Gahan/Dave” or “GAHAN/DAVEM”
reservation_info: Option<ReservationInfo>
Required. Information about flight reservation.
rotating_barcode: Option<RotatingBarcode>
The rotating barcode type and value.
security_program_logo: Option<Image>
An image for the security program that applies to the passenger.
smart_tap_redemption_value: Option<String>
The value that will be transmitted to a Smart Tap certified terminal over NFC for this object. The class level fields enableSmartTap
and redemptionIssuers
must also be set up correctly in order for the pass to support Smart Tap. Only ASCII characters are supported.
state: Option<String>
Required. The state of the object. This field is used to determine how an object is displayed in the app. For example, an inactive
object is moved to the “Expired passes” section.
text_modules_data: Option<Vec<TextModuleData>>
Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class.
valid_time_interval: Option<TimeInterval>
The time period this object will be active
and object can be used. An object’s state will be changed to expired
when this time period has passed.
version: Option<i64>
Deprecated
Trait Implementations§
Source§impl Clone for FlightObject
impl Clone for FlightObject
Source§fn clone(&self) -> FlightObject
fn clone(&self) -> FlightObject
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FlightObject
impl Debug for FlightObject
Source§impl Default for FlightObject
impl Default for FlightObject
Source§fn default() -> FlightObject
fn default() -> FlightObject
Source§impl<'de> Deserialize<'de> for FlightObject
impl<'de> Deserialize<'de> for FlightObject
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>,
Source§impl Serialize for FlightObject
impl Serialize for FlightObject
impl RequestValue for FlightObject
impl ResponseResult for FlightObject
Auto Trait Implementations§
impl Freeze for FlightObject
impl RefUnwindSafe for FlightObject
impl Send for FlightObject
impl Sync for FlightObject
impl Unpin for FlightObject
impl UnwindSafe for FlightObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more