pub struct ValueAddedModuleData {
pub body: Option<LocalizedString>,
pub header: Option<LocalizedString>,
pub image: Option<Image>,
pub sort_index: Option<i32>,
pub uri: Option<String>,
pub view_constraints: Option<ModuleViewConstraints>,
}Expand description
Data for Value Added module. Required fields are header and uri.
This type is not used in any activity, and only used as part of another schema.
Fields§
§body: Option<LocalizedString>Body to be displayed on the module. Character limit is 50 and longer strings will be truncated.
header: Option<LocalizedString>Header to be displayed on the module. Character limit is 60 and longer strings will be truncated.
image: Option<Image>Image to be displayed on the module. Recommended image ratio is 1:1. Images will be resized to fit this ratio.
sort_index: Option<i32>The index for sorting the modules. Modules with a lower sort index are shown before modules with a higher sort index. If unspecified, the sort index is assumed to be INT_MAX. For two modules with the same index, the sorting behavior is undefined.
uri: Option<String>URI that the module leads to on click. This can be a web link or a deep link as mentioned in https://developer.android.com/training/app-links/deep-linking.
view_constraints: Option<ModuleViewConstraints>Constraints that all must be met for the module to be shown.
Trait Implementations§
Source§impl Clone for ValueAddedModuleData
impl Clone for ValueAddedModuleData
Source§fn clone(&self) -> ValueAddedModuleData
fn clone(&self) -> ValueAddedModuleData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more