pub struct APIKeyCreate {
pub description: String,
pub metadata: String,
pub owner_id: Option<String>,
}
Fields§
§description: String
human-readable description of what uses the API key to authenticate. optional, max 255 bytes.
metadata: String
arbitrary user-defined data of this API key. optional, max 4096 bytes
owner_id: Option<String>
If supplied at credential creation, ownership will be assigned to the specified User or Bot. Only admins may specify an owner other than themselves. Defaults to the authenticated User or Bot.
Trait Implementations§
Source§impl Clone for APIKeyCreate
impl Clone for APIKeyCreate
Source§fn clone(&self) -> APIKeyCreate
fn clone(&self) -> APIKeyCreate
Returns a copy 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 APIKeyCreate
impl Debug for APIKeyCreate
Source§impl Default for APIKeyCreate
impl Default for APIKeyCreate
Source§fn default() -> APIKeyCreate
fn default() -> APIKeyCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for APIKeyCreate
impl<'de> Deserialize<'de> for APIKeyCreate
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 APIKeyCreate
impl RefUnwindSafe for APIKeyCreate
impl Send for APIKeyCreate
impl Sync for APIKeyCreate
impl Unpin for APIKeyCreate
impl UnwindSafe for APIKeyCreate
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