pub struct App {
Show 30 fields pub id: String, pub name: Option<String>, pub players: Option<i32>, pub messageable_players: Option<i32>, pub updated_at: Option<String>, pub created_at: Option<String>, pub android_gcm_sender_id: Option<String>, pub gcm_key: Option<String>, pub chrome_web_origin: Option<String>, pub chrome_key: Option<String>, pub chrome_web_default_notification_icon: Option<String>, pub chrome_web_sub_domain: Option<String>, pub apns_env: Option<ApnsEnvType>, pub apns_p12: Option<String>, pub apns_p12_password: Option<String>, pub apns_certificates: Option<String>, pub safari_apns_certificates: Option<String>, pub safari_apns_p12: Option<String>, pub safari_apns_p12_password: Option<String>, pub safari_site_origin: Option<String>, pub safari_push_id: Option<String>, pub safari_icon_16_16: Option<String>, pub safari_icon_32_32: Option<String>, pub safari_icon_64_64: Option<String>, pub safari_icon_128_128: Option<String>, pub safari_icon_256_256: Option<String>, pub site_name: Option<String>, pub basic_auth_key: Option<String>, pub organization_id: Option<String>, pub additional_data_is_root_payload: Option<bool>,
}

Fields

id: Stringname: Option<String>

The name of your app, as displayed on your apps list on the dashboard. This can be renamed.

players: Option<i32>messageable_players: Option<i32>updated_at: Option<String>created_at: Option<String>android_gcm_sender_id: Option<String>

Android: Your Google Project number. Also known as Sender ID.

gcm_key: Option<String>

Android: Your Google Push Messaging Auth Key

chrome_web_origin: Option<String>

Chrome (All Browsers except Safari) (Recommended): The URL to your website. This field is required if you wish to enable web push and specify other web push parameters.

chrome_key: Option<String>

Not for web push. Your Google Push Messaging Auth Key if you use Chrome Apps / Extensions.

chrome_web_default_notification_icon: Option<String>

Chrome (All Browsers except Safari): Your default notification icon. Should be 256x256 pixels, min 80x80.

chrome_web_sub_domain: Option<String>

Chrome (All Browsers except Safari): A subdomain of your choice in order to support Web Push on non-HTTPS websites. This field must be set in order for the chrome_web_gcm_sender_id property to be processed.

apns_env: Option<ApnsEnvType>

iOS: Either sandbox or production

apns_p12: Option<String>

iOS: Your apple push notification p12 certificate file, converted to a string and Base64 encoded.

apns_p12_password: Option<String>

iOS: Required if using p12 certificate. Password for the apns_p12 file.

apns_certificates: Option<String>safari_apns_certificates: Option<String>safari_apns_p12: Option<String>

Safari: Your apple push notification p12 certificate file for Safari Push Notifications, converted to a string and Base64 encoded.

safari_apns_p12_password: Option<String>

Safari: Password for safari_apns_p12 file

safari_site_origin: Option<String>

Safari (Recommended): The hostname to your website including http(s)://

safari_push_id: Option<String>safari_icon_16_16: Option<String>safari_icon_32_32: Option<String>safari_icon_64_64: Option<String>safari_icon_128_128: Option<String>safari_icon_256_256: Option<String>

Safari: A url for a 256x256 png notification icon. This is the only Safari icon URL you need to provide.

site_name: Option<String>

All Browsers (Recommended): The Site Name. Requires both chrome_web_origin and safari_site_origin to be set to add or update it.

basic_auth_key: Option<String>organization_id: Option<String>

The Id of the Organization you would like to add this app to.

additional_data_is_root_payload: Option<bool>

iOS: Notification data (additional data) values will be added to the root of the apns payload when sent to the device. Ignore if you’re not using any other plugins, or not using OneSignal SDK methods to read the payload.

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more