pub struct UpdateKeyRequest {
pub name: Option<String>,
pub disabled: Option<bool>,
pub limit: Option<f64>,
pub include_byok_in_limit: Option<bool>,
}Expand description
Partial-update request body for crate::Client::update_key. Only the
fields you set are sent.
Fields§
§name: Option<String>New display name.
disabled: Option<bool>New disabled flag.
limit: Option<f64>New spend limit.
include_byok_in_limit: Option<bool>New BYOK-counts-toward-limit flag.
Trait Implementations§
Source§impl Clone for UpdateKeyRequest
impl Clone for UpdateKeyRequest
Source§fn clone(&self) -> UpdateKeyRequest
fn clone(&self) -> UpdateKeyRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdateKeyRequest
impl Debug for UpdateKeyRequest
Source§impl Default for UpdateKeyRequest
impl Default for UpdateKeyRequest
Source§fn default() -> UpdateKeyRequest
fn default() -> UpdateKeyRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateKeyRequest
impl<'de> Deserialize<'de> for UpdateKeyRequest
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 UpdateKeyRequest
impl PartialEq for UpdateKeyRequest
Source§impl Serialize for UpdateKeyRequest
impl Serialize for UpdateKeyRequest
impl StructuralPartialEq for UpdateKeyRequest
Auto Trait Implementations§
impl Freeze for UpdateKeyRequest
impl RefUnwindSafe for UpdateKeyRequest
impl Send for UpdateKeyRequest
impl Sync for UpdateKeyRequest
impl Unpin for UpdateKeyRequest
impl UnsafeUnpin for UpdateKeyRequest
impl UnwindSafe for UpdateKeyRequest
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