#[non_exhaustive]pub struct FullApplicationKeyAttributes {
pub created_at: Option<DateTime<Utc>>,
pub key: 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 full 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<DateTime<Utc>>
Creation date of the application key.
key: Option<String>
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 FullApplicationKeyAttributes
impl FullApplicationKeyAttributes
pub fn new() -> FullApplicationKeyAttributes
pub fn created_at(self, value: DateTime<Utc>) -> Self
pub fn key(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 FullApplicationKeyAttributes
impl Clone for FullApplicationKeyAttributes
Source§fn clone(&self) -> FullApplicationKeyAttributes
fn clone(&self) -> FullApplicationKeyAttributes
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 FullApplicationKeyAttributes
impl Debug for FullApplicationKeyAttributes
Source§impl<'de> Deserialize<'de> for FullApplicationKeyAttributes
impl<'de> Deserialize<'de> for FullApplicationKeyAttributes
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 FullApplicationKeyAttributes
impl PartialEq for FullApplicationKeyAttributes
Source§fn eq(&self, other: &FullApplicationKeyAttributes) -> bool
fn eq(&self, other: &FullApplicationKeyAttributes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for FullApplicationKeyAttributes
Auto Trait Implementations§
impl Freeze for FullApplicationKeyAttributes
impl RefUnwindSafe for FullApplicationKeyAttributes
impl Send for FullApplicationKeyAttributes
impl Sync for FullApplicationKeyAttributes
impl Unpin for FullApplicationKeyAttributes
impl UnwindSafe for FullApplicationKeyAttributes
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