#[non_exhaustive]pub struct IapSettings {
pub name: String,
pub access_settings: Option<AccessSettings>,
pub application_settings: Option<ApplicationSettings>,
/* private fields */
}Expand description
The IAP configurable settings.
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.name: StringRequired. The resource name of the IAP protected resource.
access_settings: Option<AccessSettings>Optional. Top level wrapper for all access related setting in IAP
application_settings: Option<ApplicationSettings>Optional. Top level wrapper for all application related settings in IAP
Implementations§
Source§impl IapSettings
impl IapSettings
pub fn new() -> Self
Sourcepub fn set_access_settings<T>(self, v: T) -> Selfwhere
T: Into<AccessSettings>,
pub fn set_access_settings<T>(self, v: T) -> Selfwhere
T: Into<AccessSettings>,
Sets the value of access_settings.
Sourcepub fn set_or_clear_access_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<AccessSettings>,
pub fn set_or_clear_access_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<AccessSettings>,
Sets or clears the value of access_settings.
Sourcepub fn set_application_settings<T>(self, v: T) -> Selfwhere
T: Into<ApplicationSettings>,
pub fn set_application_settings<T>(self, v: T) -> Selfwhere
T: Into<ApplicationSettings>,
Sets the value of application_settings.
Sourcepub fn set_or_clear_application_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<ApplicationSettings>,
pub fn set_or_clear_application_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<ApplicationSettings>,
Sets or clears the value of application_settings.
Trait Implementations§
Source§impl Clone for IapSettings
impl Clone for IapSettings
Source§fn clone(&self) -> IapSettings
fn clone(&self) -> IapSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IapSettings
impl Debug for IapSettings
Source§impl Default for IapSettings
impl Default for IapSettings
Source§fn default() -> IapSettings
fn default() -> IapSettings
Returns the “default value” for a type. Read more
Source§impl Message for IapSettings
impl Message for IapSettings
Source§impl PartialEq for IapSettings
impl PartialEq for IapSettings
impl StructuralPartialEq for IapSettings
Auto Trait Implementations§
impl Freeze for IapSettings
impl RefUnwindSafe for IapSettings
impl Send for IapSettings
impl Sync for IapSettings
impl Unpin for IapSettings
impl UnwindSafe for IapSettings
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