#[non_exhaustive]pub struct PartialAPIKeyAttributes {
pub category: Option<String>,
pub created_at: Option<String>,
pub last4: Option<String>,
pub modified_at: Option<String>,
pub name: Option<String>,
pub remote_config_read_enabled: Option<bool>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Attributes of a partial API 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.category: Option<String>
The category of the API key.
created_at: Option<String>
Creation date of the API key.
last4: Option<String>
The last four characters of the API key.
modified_at: Option<String>
Date the API key was last modified.
name: Option<String>
Name of the API key.
remote_config_read_enabled: Option<bool>
The remote config read enabled status.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl PartialAPIKeyAttributes
impl PartialAPIKeyAttributes
pub fn new() -> PartialAPIKeyAttributes
pub fn category(self, value: String) -> Self
pub fn created_at(self, value: String) -> Self
pub fn last4(self, value: String) -> Self
pub fn modified_at(self, value: String) -> Self
pub fn name(self, value: String) -> Self
pub fn remote_config_read_enabled(self, value: bool) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for PartialAPIKeyAttributes
impl Clone for PartialAPIKeyAttributes
Source§fn clone(&self) -> PartialAPIKeyAttributes
fn clone(&self) -> PartialAPIKeyAttributes
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 PartialAPIKeyAttributes
impl Debug for PartialAPIKeyAttributes
Source§impl Default for PartialAPIKeyAttributes
impl Default for PartialAPIKeyAttributes
Source§impl<'de> Deserialize<'de> for PartialAPIKeyAttributes
impl<'de> Deserialize<'de> for PartialAPIKeyAttributes
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 PartialAPIKeyAttributes
impl PartialEq for PartialAPIKeyAttributes
Source§impl Serialize for PartialAPIKeyAttributes
impl Serialize for PartialAPIKeyAttributes
impl StructuralPartialEq for PartialAPIKeyAttributes
Auto Trait Implementations§
impl Freeze for PartialAPIKeyAttributes
impl RefUnwindSafe for PartialAPIKeyAttributes
impl Send for PartialAPIKeyAttributes
impl Sync for PartialAPIKeyAttributes
impl Unpin for PartialAPIKeyAttributes
impl UnwindSafe for PartialAPIKeyAttributes
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