pub struct V2Restrictions {
pub android_key_restrictions: Option<V2AndroidKeyRestrictions>,
pub api_targets: Option<Vec<V2ApiTarget>>,
pub browser_key_restrictions: Option<V2BrowserKeyRestrictions>,
pub ios_key_restrictions: Option<V2IosKeyRestrictions>,
pub server_key_restrictions: Option<V2ServerKeyRestrictions>,
}Expand description
Describes the restrictions on the key.
This type is not used in any activity, and only used as part of another schema.
Fields§
§android_key_restrictions: Option<V2AndroidKeyRestrictions>The Android apps that are allowed to use the key.
api_targets: Option<Vec<V2ApiTarget>>A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
browser_key_restrictions: Option<V2BrowserKeyRestrictions>The HTTP referrers (websites) that are allowed to use the key.
ios_key_restrictions: Option<V2IosKeyRestrictions>The iOS apps that are allowed to use the key.
server_key_restrictions: Option<V2ServerKeyRestrictions>The IP addresses of callers that are allowed to use the key.
Trait Implementations§
Source§impl Clone for V2Restrictions
impl Clone for V2Restrictions
Source§fn clone(&self) -> V2Restrictions
fn clone(&self) -> V2Restrictions
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 V2Restrictions
impl Debug for V2Restrictions
Source§impl Default for V2Restrictions
impl Default for V2Restrictions
Source§fn default() -> V2Restrictions
fn default() -> V2Restrictions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for V2Restrictions
impl<'de> Deserialize<'de> for V2Restrictions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Serialize for V2Restrictions
impl Serialize for V2Restrictions
impl Part for V2Restrictions
Auto Trait Implementations§
impl Freeze for V2Restrictions
impl RefUnwindSafe for V2Restrictions
impl Send for V2Restrictions
impl Sync for V2Restrictions
impl Unpin for V2Restrictions
impl UnwindSafe for V2Restrictions
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