pub struct RotatingBarcode {
pub alternate_text: Option<String>,
pub initial_rotating_barcode_values: Option<RotatingBarcodeValues>,
pub render_encoding: Option<String>,
pub show_code_text: Option<LocalizedString>,
pub totp_details: Option<RotatingBarcodeTotpDetails>,
pub type_: Option<String>,
pub value_pattern: Option<String>,
}
Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§alternate_text: Option<String>
An optional text that will override the default text that shows under the barcode. This field is intended for a human readable equivalent of the barcode value, used when the barcode cannot be scanned.
initial_rotating_barcode_values: Option<RotatingBarcodeValues>
Input only. NOTE: This feature is only available for the transit vertical. Optional set of initial rotating barcode values. This allows a small subset of barcodes to be included with the object. Further rotating barcode values must be uploaded with the UploadRotatingBarcodeValues endpoint.
render_encoding: Option<String>
The render encoding for the barcode. When specified, barcode is rendered in the given encoding. Otherwise best known encoding is chosen by Google.
show_code_text: Option<LocalizedString>
Optional text that will be shown when the barcode is hidden behind a click action. This happens in cases where a pass has Smart Tap enabled. If not specified, a default is chosen by Google.
totp_details: Option<RotatingBarcodeTotpDetails>
Details used to evaluate the {totp_value_n} substitutions.
type_: Option<String>
The type of this barcode.
value_pattern: Option<String>
String encoded barcode value. This string supports the following substitutions: * {totp_value_n}: Replaced with the TOTP value (see TotpDetails.parameters). * {totp_timestamp_millis}: Replaced with the timestamp (millis since epoch) at which the barcode was generated. * {totp_timestamp_seconds}: Replaced with the timestamp (seconds since epoch) at which the barcode was generated.
Trait Implementations§
Source§impl Clone for RotatingBarcode
impl Clone for RotatingBarcode
Source§fn clone(&self) -> RotatingBarcode
fn clone(&self) -> RotatingBarcode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RotatingBarcode
impl Debug for RotatingBarcode
Source§impl Default for RotatingBarcode
impl Default for RotatingBarcode
Source§fn default() -> RotatingBarcode
fn default() -> RotatingBarcode
Source§impl<'de> Deserialize<'de> for RotatingBarcode
impl<'de> Deserialize<'de> for RotatingBarcode
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 RotatingBarcode
impl Serialize for RotatingBarcode
impl Part for RotatingBarcode
Auto Trait Implementations§
impl Freeze for RotatingBarcode
impl RefUnwindSafe for RotatingBarcode
impl Send for RotatingBarcode
impl Sync for RotatingBarcode
impl Unpin for RotatingBarcode
impl UnwindSafe for RotatingBarcode
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