pub struct GenericClass {Show 13 fields
pub app_link_data: Option<AppLinkData>,
pub callback_options: Option<CallbackOptions>,
pub class_template_info: Option<ClassTemplateInfo>,
pub enable_smart_tap: Option<bool>,
pub id: Option<String>,
pub image_modules_data: Option<Vec<ImageModuleData>>,
pub links_module_data: Option<LinksModuleData>,
pub messages: Option<Vec<Message>>,
pub multiple_devices_and_holders_allowed_status: Option<String>,
pub redemption_issuers: Option<Vec<i64>>,
pub security_animation: Option<SecurityAnimation>,
pub text_modules_data: Option<Vec<TextModuleData>>,
pub view_unlock_requirement: Option<String>,
}
Expand description
Generic Class
§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 genericclass (response)
- insert genericclass (request|response)
- patch genericclass (request|response)
- update genericclass (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 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.
enable_smart_tap: Option<bool>
Available only to Smart Tap enabled partners. Contact support for additional guidance.
id: Option<String>
Required. The unique identifier for the class. This ID must be unique across all from an issuer. This value needs to follow the format issuerID.identifier
where issuerID
is issued by Google and identifier
is chosen by you. The unique identifier can only include alphanumeric characters, .
, _
, or -
.
image_modules_data: Option<Vec<ImageModuleData>>
Image module data. If imageModulesData
is also defined on the object, both will be displayed. Only one of the image from class and one from object level will be rendered when both set.
links_module_data: Option<LinksModuleData>
Links module data. If linksModuleData
is also defined on the object, both will be displayed. The maximum number of these fields displayed is 10 from class and 10 from object.
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.
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 object level smartTapRedemptionLevel
fields must also be set up correctly in order for a pass to support Smart Tap.
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 textModulesData
is also defined on the object, both will be displayed. The maximum number of these fields displayed is 10 from class and 10 from object.
view_unlock_requirement: Option<String>
View Unlock Requirement options for the generic pass.
Trait Implementations§
Source§impl Clone for GenericClass
impl Clone for GenericClass
Source§fn clone(&self) -> GenericClass
fn clone(&self) -> GenericClass
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GenericClass
impl Debug for GenericClass
Source§impl Default for GenericClass
impl Default for GenericClass
Source§fn default() -> GenericClass
fn default() -> GenericClass
Source§impl<'de> Deserialize<'de> for GenericClass
impl<'de> Deserialize<'de> for GenericClass
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 GenericClass
impl Serialize for GenericClass
impl RequestValue for GenericClass
impl ResponseResult for GenericClass
Auto Trait Implementations§
impl Freeze for GenericClass
impl RefUnwindSafe for GenericClass
impl Send for GenericClass
impl Sync for GenericClass
impl Unpin for GenericClass
impl UnwindSafe for GenericClass
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