pub struct ApiKeyCreated {
pub id: String,
pub key: String,
pub name: Option<String>,
pub scopes: Vec<ApiKeyScope>,
pub created_at: String,
}Expand description
Response returned when an API key is created (includes the secret).
Fields§
§id: StringKey identifier.
key: StringThe secret key value (only returned at creation time).
name: Option<String>Human-readable name.
scopes: Vec<ApiKeyScope>Permission scopes.
created_at: StringCreation timestamp.
Trait Implementations§
Source§impl Clone for ApiKeyCreated
impl Clone for ApiKeyCreated
Source§fn clone(&self) -> ApiKeyCreated
fn clone(&self) -> ApiKeyCreated
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 ApiKeyCreated
impl Debug for ApiKeyCreated
Source§impl<'de> Deserialize<'de> for ApiKeyCreated
impl<'de> Deserialize<'de> for ApiKeyCreated
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
Auto Trait Implementations§
impl Freeze for ApiKeyCreated
impl RefUnwindSafe for ApiKeyCreated
impl Send for ApiKeyCreated
impl Sync for ApiKeyCreated
impl Unpin for ApiKeyCreated
impl UnwindSafe for ApiKeyCreated
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