pub struct ApiKeyCredential<E = ()> {
pub key: Option<EditableField<EditableFieldConcealedString, E>>,
pub username: Option<EditableField<EditableFieldString, E>>,
pub key_type: Option<EditableField<EditableFieldString, E>>,
pub url: Option<EditableField<EditableFieldString, E>>,
pub valid_from: Option<EditableField<EditableFieldDate, E>>,
pub expiry_date: Option<EditableField<EditableFieldDate, E>>,
}Expand description
A ApiKeyCredential contains information to interact with an Application’s Programming Interface (API).
Fields§
§key: Option<EditableField<EditableFieldConcealedString, E>>This member denotes the key to communicate with the API.
username: Option<EditableField<EditableFieldString, E>>This member denotes the username associated with the key.
key_type: Option<EditableField<EditableFieldString, E>>This member denotes the type of the API key, such as bearer token or JSON Web Token. It is flexible to allow any type and not restrict it to a set list of types.
url: Option<EditableField<EditableFieldString, E>>This member denotes the url the API key is used with and SHOULD conform to the URL Standard.
valid_from: Option<EditableField<EditableFieldDate, E>>This member denotes the date the API key is valid from.
expiry_date: Option<EditableField<EditableFieldDate, E>>This member denotes the date on which the API key expires.
Trait Implementations§
Source§impl<E: Clone> Clone for ApiKeyCredential<E>
impl<E: Clone> Clone for ApiKeyCredential<E>
Source§fn clone(&self) -> ApiKeyCredential<E>
fn clone(&self) -> ApiKeyCredential<E>
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<E: Debug> Debug for ApiKeyCredential<E>
impl<E: Debug> Debug for ApiKeyCredential<E>
Source§impl<E: Default> Default for ApiKeyCredential<E>
impl<E: Default> Default for ApiKeyCredential<E>
Source§fn default() -> ApiKeyCredential<E>
fn default() -> ApiKeyCredential<E>
Returns the “default value” for a type. Read more
Source§impl<'de, E> Deserialize<'de> for ApiKeyCredential<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for ApiKeyCredential<E>where
E: Deserialize<'de>,
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<E> Freeze for ApiKeyCredential<E>
impl<E> RefUnwindSafe for ApiKeyCredential<E>where
E: RefUnwindSafe,
impl<E> Send for ApiKeyCredential<E>where
E: Send,
impl<E> Sync for ApiKeyCredential<E>where
E: Sync,
impl<E> Unpin for ApiKeyCredential<E>where
E: Unpin,
impl<E> UnwindSafe for ApiKeyCredential<E>where
E: UnwindSafe,
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