#[non_exhaustive]pub struct PartialApplicationKeyAttributes {
pub created_at: Option<String>,
pub last4: Option<String>,
pub name: Option<String>,
pub scopes: Option<Option<Vec<String>>>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Attributes of a partial application key.
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.created_at: Option<String>
Creation date of the application key.
last4: Option<String>
The last four characters of the application key.
name: Option<String>
Name of the application key.
scopes: Option<Option<Vec<String>>>
Array of scopes to grant the application key.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl PartialApplicationKeyAttributes
impl PartialApplicationKeyAttributes
pub fn new() -> PartialApplicationKeyAttributes
pub fn created_at(self, value: String) -> Self
pub fn last4(self, value: String) -> Self
pub fn name(self, value: String) -> Self
pub fn scopes(self, value: Option<Vec<String>>) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for PartialApplicationKeyAttributes
impl Clone for PartialApplicationKeyAttributes
Source§fn clone(&self) -> PartialApplicationKeyAttributes
fn clone(&self) -> PartialApplicationKeyAttributes
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<'de> Deserialize<'de> for PartialApplicationKeyAttributes
impl<'de> Deserialize<'de> for PartialApplicationKeyAttributes
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 PartialEq for PartialApplicationKeyAttributes
impl PartialEq for PartialApplicationKeyAttributes
Source§fn eq(&self, other: &PartialApplicationKeyAttributes) -> bool
fn eq(&self, other: &PartialApplicationKeyAttributes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PartialApplicationKeyAttributes
Auto Trait Implementations§
impl Freeze for PartialApplicationKeyAttributes
impl RefUnwindSafe for PartialApplicationKeyAttributes
impl Send for PartialApplicationKeyAttributes
impl Sync for PartialApplicationKeyAttributes
impl Unpin for PartialApplicationKeyAttributes
impl UnwindSafe for PartialApplicationKeyAttributes
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