pub struct UpdateClientRequest {
pub pubkey: PublicKey,
pub expires_at: Option<Option<TimestampMs>>,
pub label: Option<Option<String>>,
pub scope: Option<LexeScope>,
pub is_revoked: Option<bool>,
}Expand description
A request to update a single RevocableClient.
All fields except pubkey are optional. If a field is None, it will not
be updated. For example:
expires_at: None-> don’t changeexpires_at: Some(None)-> set to never expireexpires_at: Some(TimestampMs(..))-> set to expire at that time
Fields§
§pubkey: PublicKeyThe pubkey of the client to update.
expires_at: Option<Option<TimestampMs>>Set this client’s expiration (Some(None) means never expire).
label: Option<Option<String>>Set this client’s label.
scope: Option<LexeScope>Set the authorization scopes allowed for this client.
is_revoked: Option<bool>Set this to revoke or unrevoke the client. Revocation is permanent, so you cannot unrevoke a client once it is revoked.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UpdateClientRequest
impl<'de> Deserialize<'de> for UpdateClientRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateClientRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateClientRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdateClientRequest
impl Serialize for UpdateClientRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateClientRequest
impl RefUnwindSafe for UpdateClientRequest
impl Send for UpdateClientRequest
impl Sync for UpdateClientRequest
impl Unpin for UpdateClientRequest
impl UnsafeUnpin for UpdateClientRequest
impl UnwindSafe for UpdateClientRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> 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