Struct kanidm_proto::v1::ApiTokenGenerate
source · pub struct ApiTokenGenerate {
pub label: String,
pub expiry: Option<OffsetDateTime>,
pub read_write: bool,
}
Expand description
A request to generate a new API token for a service account
Fields§
§label: String
§expiry: Option<OffsetDateTime>
§read_write: bool
Trait Implementations§
source§impl Clone for ApiTokenGenerate
impl Clone for ApiTokenGenerate
source§fn clone(&self) -> ApiTokenGenerate
fn clone(&self) -> ApiTokenGenerate
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 ApiTokenGenerate
impl Debug for ApiTokenGenerate
source§impl<'de> Deserialize<'de> for ApiTokenGenerate
impl<'de> Deserialize<'de> for ApiTokenGenerate
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 Serialize for ApiTokenGenerate
impl Serialize for ApiTokenGenerate
Auto Trait Implementations§
impl Freeze for ApiTokenGenerate
impl RefUnwindSafe for ApiTokenGenerate
impl Send for ApiTokenGenerate
impl Sync for ApiTokenGenerate
impl Unpin for ApiTokenGenerate
impl UnwindSafe for ApiTokenGenerate
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)