pub struct Message {
pub body: Option<String>,
pub display_interval: Option<TimeInterval>,
pub header: Option<String>,
pub id: Option<String>,
pub kind: Option<String>,
pub localized_body: Option<LocalizedString>,
pub localized_header: Option<LocalizedString>,
pub message_type: Option<String>,
}Expand description
A message that will be displayed with a Valuable
This type is not used in any activity, and only used as part of another schema.
Fields§
§body: Option<String>The message body.
display_interval: Option<TimeInterval>The period of time that the message will be displayed to users. You can define both a startTime and endTime for each message. A message is displayed immediately after a Wallet Object is inserted unless a startTime is set. The message will appear in a list of messages indefinitely if endTime is not provided.
header: Option<String>The message header.
id: Option<String>The ID associated with a message. This field is here to enable ease of management of messages. Notice ID values could possibly duplicate across multiple messages in the same class/instance, and care must be taken to select a reasonable ID for each message.
kind: Option<String>Identifies what kind of resource this is. Value: the fixed string "walletobjects#walletObjectMessage".
localized_body: Option<LocalizedString>Translated strings for the message body.
localized_header: Option<LocalizedString>Translated strings for the message header.
message_type: Option<String>The message type.