pub struct ApiTokenRecord {
pub name: String,
pub description: Option<String>,
pub enabled: bool,
pub config: ApiTokenConfig,
pub extra: BTreeMap<String, Value>,
}Expand description
One ignition/api-token resource record — the typed subset adopt
reads (find-by-name + config inspection); unknown keys round-trip.
Fields§
§name: StringThe key’s name — the find-by-name key AND half of the auth
header value (<name>:<key>).
description: Option<String>Free-text description, when set.
enabled: boolDisabled keys authenticate as nothing.
config: ApiTokenConfigThe token profile + hash.
extra: BTreeMap<String, Value>Unknown keys round-trip (version, signature, attributes, …).
Trait Implementations§
Source§impl Clone for ApiTokenRecord
impl Clone for ApiTokenRecord
Source§fn clone(&self) -> ApiTokenRecord
fn clone(&self) -> ApiTokenRecord
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 ApiTokenRecord
impl Debug for ApiTokenRecord
Source§impl<'de> Deserialize<'de> for ApiTokenRecord
impl<'de> Deserialize<'de> for ApiTokenRecord
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 ApiTokenRecord
impl PartialEq for ApiTokenRecord
Source§impl Serialize for ApiTokenRecord
impl Serialize for ApiTokenRecord
impl StructuralPartialEq for ApiTokenRecord
Auto Trait Implementations§
impl Freeze for ApiTokenRecord
impl RefUnwindSafe for ApiTokenRecord
impl Send for ApiTokenRecord
impl Sync for ApiTokenRecord
impl Unpin for ApiTokenRecord
impl UnsafeUnpin for ApiTokenRecord
impl UnwindSafe for ApiTokenRecord
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