Struct App

Source
pub struct App {
Show 34 fields pub id: Option<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 apns_key_id: Option<String>, pub apns_team_id: Option<String>, pub apns_bundle_id: Option<String>, pub apns_p8: 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: Option<String>§name: 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

§apns_key_id: Option<String>

iOS: Required if using p8. Unique identifier for the p8 authentication key.

§apns_team_id: Option<String>

iOS: Required if using p8. Team ID generated by Apple for your developer account.

§apns_bundle_id: Option<String>

iOS: Required if using p8. Bundle ID for your app in the Apple ecosystem.

§apns_p8: Option<String>

iOS: Required if using p8. Base64 encoded p8 key

§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§

Source§

impl App

Source

pub fn new() -> App

Trait Implementations§

Source§

impl Clone for App

Source§

fn clone(&self) -> App

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for App

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for App

Source§

fn default() -> App

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for App

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for App

Source§

fn eq(&self, other: &App) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for App

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for App

Auto Trait Implementations§

§

impl Freeze for App

§

impl RefUnwindSafe for App

§

impl Send for App

§

impl Sync for App

§

impl Unpin for App

§

impl UnwindSafe for App

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,