#[non_exhaustive]pub struct Image {
pub mime_type: String,
pub data: Bytes,
pub hhd_uc_data: Option<Bytes>,
}
Expand description
Image data for a dialog.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.mime_type: String
§data: Bytes
Binary data in the format defined by mime_type
.
hhd_uc_data: Option<Bytes>
HHD_UC data block
In cases where the ASPSP provides HHD_UC data for optical coupling with a HandHeld-Device for the generation of an OTP, especially for an HHD_OPT animated graphic, the raw HHD_UC data stream is provided here.
The publicly available document “HandHeld-Device (HHD) for the generation of an OTP HHD
enhancement for optical interfaces” describes how to implement the animated graphic for
HHD_OPT in section C. data
provides a pre-rendered animated GIF
to be presented with a width of 62.5 mm.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl !Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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