pub struct KeyCreateRequest {
pub name: Option<String>,
pub limit: Option<f64>,
pub limit_reset: Option<String>,
pub include_byok_in_limit: Option<bool>,
pub expires_at: Option<String>,
pub creator_user_id: Option<String>,
pub workspace_id: Option<String>,
pub extra: JsonObject,
}Fields§
§name: Option<String>§limit: Option<f64>§limit_reset: Option<String>§include_byok_in_limit: Option<bool>§expires_at: Option<String>§creator_user_id: Option<String>§workspace_id: Option<String>§extra: JsonObjectTrait Implementations§
Source§impl Clone for KeyCreateRequest
impl Clone for KeyCreateRequest
Source§fn clone(&self) -> KeyCreateRequest
fn clone(&self) -> KeyCreateRequest
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 KeyCreateRequest
impl Debug for KeyCreateRequest
Source§impl Default for KeyCreateRequest
impl Default for KeyCreateRequest
Source§fn default() -> KeyCreateRequest
fn default() -> KeyCreateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeyCreateRequest
impl<'de> Deserialize<'de> for KeyCreateRequest
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 KeyCreateRequest
impl PartialEq for KeyCreateRequest
Source§fn eq(&self, other: &KeyCreateRequest) -> bool
fn eq(&self, other: &KeyCreateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KeyCreateRequest
impl Serialize for KeyCreateRequest
impl StructuralPartialEq for KeyCreateRequest
Auto Trait Implementations§
impl Freeze for KeyCreateRequest
impl RefUnwindSafe for KeyCreateRequest
impl Send for KeyCreateRequest
impl Sync for KeyCreateRequest
impl Unpin for KeyCreateRequest
impl UnsafeUnpin for KeyCreateRequest
impl UnwindSafe for KeyCreateRequest
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