pub struct LoyaltyClass {Show 44 fields
pub account_id_label: Option<String>,
pub account_name_label: Option<String>,
pub allow_multiple_users_per_object: Option<bool>,
pub app_link_data: Option<AppLinkData>,
pub callback_options: Option<CallbackOptions>,
pub class_template_info: Option<ClassTemplateInfo>,
pub country_code: Option<String>,
pub discoverable_program: Option<DiscoverableProgram>,
pub enable_smart_tap: Option<bool>,
pub hero_image: Option<Image>,
pub hex_background_color: Option<String>,
pub homepage_uri: Option<Uri>,
pub id: Option<String>,
pub image_modules_data: Option<Vec<ImageModuleData>>,
pub info_module_data: Option<InfoModuleData>,
pub issuer_name: Option<String>,
pub kind: Option<String>,
pub links_module_data: Option<LinksModuleData>,
pub localized_account_id_label: Option<LocalizedString>,
pub localized_account_name_label: Option<LocalizedString>,
pub localized_issuer_name: Option<LocalizedString>,
pub localized_program_name: Option<LocalizedString>,
pub localized_rewards_tier: Option<LocalizedString>,
pub localized_rewards_tier_label: Option<LocalizedString>,
pub localized_secondary_rewards_tier: Option<LocalizedString>,
pub localized_secondary_rewards_tier_label: Option<LocalizedString>,
pub locations: Option<Vec<LatLongPoint>>,
pub messages: Option<Vec<Message>>,
pub multiple_devices_and_holders_allowed_status: Option<String>,
pub program_logo: Option<Image>,
pub program_name: Option<String>,
pub redemption_issuers: Option<Vec<i64>>,
pub review: Option<Review>,
pub review_status: Option<String>,
pub rewards_tier: Option<String>,
pub rewards_tier_label: Option<String>,
pub secondary_rewards_tier: Option<String>,
pub secondary_rewards_tier_label: Option<String>,
pub security_animation: Option<SecurityAnimation>,
pub text_modules_data: Option<Vec<TextModuleData>>,
pub version: Option<i64>,
pub view_unlock_requirement: Option<String>,
pub wide_program_logo: Option<Image>,
pub word_mark: Option<Image>,
}
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 loyaltyclass (response)
- insert loyaltyclass (request|response)
- patch loyaltyclass (request|response)
- update loyaltyclass (request|response)
Fields§
§account_id_label: Option<String>
The account ID label, such as “Member ID.” Recommended maximum length is 15 characters to ensure full string is displayed on smaller screens.
account_name_label: Option<String>
The account name label, such as “Member Name.” Recommended maximum length is 15 characters to ensure full string is displayed on smaller screens.
allow_multiple_users_per_object: Option<bool>
Deprecated. Use multipleDevicesAndHoldersAllowedStatus
instead.
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 object that will be used instead.
callback_options: Option<CallbackOptions>
Callback options to be used to call the issuer back for every save/delete of an object for this class by the end-user. All objects of this class are eligible for the callback.
class_template_info: Option<ClassTemplateInfo>
Template information about how the class should be displayed. If unset, Google will fallback to a default set of fields to display.
country_code: Option<String>
Country code used to display the card’s country (when the user is not in that country), as well as to display localized content when content is not available in the user’s locale.
discoverable_program: Option<DiscoverableProgram>
Information about how the class may be discovered and instantiated from within the Google Pay app.
enable_smart_tap: Option<bool>
Identifies whether this class supports Smart Tap. The redemptionIssuers
and one of object level smartTapRedemptionLevel
, barcode.value, or
accountId` fields must also be set up correctly in order for a pass to support Smart Tap.
hero_image: Option<Image>
Optional banner image displayed on the front of the card. If none is present, nothing will be displayed. The image will display at 100% width.
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
.
homepage_uri: Option<Uri>
The URI of your application’s home page. Populating the URI in this field results in the exact same behavior as populating an URI in linksModuleData (when an object is rendered, a link to the homepage is shown in what would usually be thought of as the linksModuleData section of the object).
id: Option<String>
Required. The unique identifier for a class. This ID must be unique across all classes 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. Your 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.
issuer_name: Option<String>
Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens.
kind: Option<String>
Identifies what kind of resource this is. Value: the fixed string "walletobjects#loyaltyClass"
.
links_module_data: Option<LinksModuleData>
Links module data. If links module data is also defined on the object, both will be displayed.
localized_account_id_label: Option<LocalizedString>
Translated strings for the account_id_label. Recommended maximum length is 15 characters to ensure full string is displayed on smaller screens.
localized_account_name_label: Option<LocalizedString>
Translated strings for the account_name_label. Recommended maximum length is 15 characters to ensure full string is displayed on smaller screens.
localized_issuer_name: Option<LocalizedString>
Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens.
localized_program_name: Option<LocalizedString>
Translated strings for the program_name. The app may display an ellipsis after the first 20 characters to ensure full string is displayed on smaller screens.
localized_rewards_tier: Option<LocalizedString>
Translated strings for the rewards_tier. Recommended maximum length is 7 characters to ensure full string is displayed on smaller screens.
localized_rewards_tier_label: Option<LocalizedString>
Translated strings for the rewards_tier_label. Recommended maximum length is 9 characters to ensure full string is displayed on smaller screens.
localized_secondary_rewards_tier: Option<LocalizedString>
Translated strings for the secondary_rewards_tier.
localized_secondary_rewards_tier_label: Option<LocalizedString>
Translated strings for the secondary_rewards_tier_label.
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.
multiple_devices_and_holders_allowed_status: Option<String>
Identifies whether multiple users and devices will save the same object referencing this class.
program_logo: Option<Image>
Required. The logo of the loyalty program or company. This logo is displayed in both the details and list views of the app.
program_name: Option<String>
Required. The program name, such as “Adam’s Apparel”. The app may display an ellipsis after the first 20 characters to ensure full string is displayed on smaller screens.
redemption_issuers: Option<Vec<i64>>
Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The enableSmartTap
and one of object level smartTapRedemptionValue
, barcode.value, or
accountId` fields must also be set up correctly in order for a pass to support Smart Tap.
review: Option<Review>
The review comments set by the platform when a class is marked approved
or rejected
.
review_status: Option<String>
Required. The status of the class. This field can be set to draft
or underReview
using the insert, patch, or update API calls. Once the review state is changed from draft
it may not be changed back to draft
. You should keep this field to draft
when the class is under development. A draft
class cannot be used to create any object. You should set this field to underReview
when you believe the class is ready for use. The platform will automatically set this field to approved
and it can be immediately used to create or migrate objects. When updating an already approved
class you should keep setting this field to underReview
.
rewards_tier: Option<String>
The rewards tier, such as “Gold” or “Platinum.” Recommended maximum length is 7 characters to ensure full string is displayed on smaller screens.
rewards_tier_label: Option<String>
The rewards tier label, such as “Rewards Tier.” Recommended maximum length is 9 characters to ensure full string is displayed on smaller screens.
secondary_rewards_tier: Option<String>
The secondary rewards tier, such as “Gold” or “Platinum.”
secondary_rewards_tier_label: Option<String>
The secondary rewards tier label, such as “Rewards Tier.”
security_animation: Option<SecurityAnimation>
Optional information about the security animation. If this is set a security animation will be rendered on pass details.
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.
version: Option<i64>
Deprecated
view_unlock_requirement: Option<String>
View Unlock Requirement options for the loyalty card.
wide_program_logo: Option<Image>
The wide logo of the loyalty program or company. When provided, this will be used in place of the program logo in the top left of the card view.
word_mark: Option<Image>
Deprecated.
Trait Implementations§
Source§impl Clone for LoyaltyClass
impl Clone for LoyaltyClass
Source§fn clone(&self) -> LoyaltyClass
fn clone(&self) -> LoyaltyClass
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LoyaltyClass
impl Debug for LoyaltyClass
Source§impl Default for LoyaltyClass
impl Default for LoyaltyClass
Source§fn default() -> LoyaltyClass
fn default() -> LoyaltyClass
Source§impl<'de> Deserialize<'de> for LoyaltyClass
impl<'de> Deserialize<'de> for LoyaltyClass
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 LoyaltyClass
impl Serialize for LoyaltyClass
impl RequestValue for LoyaltyClass
impl ResponseResult for LoyaltyClass
Auto Trait Implementations§
impl Freeze for LoyaltyClass
impl RefUnwindSafe for LoyaltyClass
impl Send for LoyaltyClass
impl Sync for LoyaltyClass
impl Unpin for LoyaltyClass
impl UnwindSafe for LoyaltyClass
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