pub struct UpdateClientRequest {
pub pubkey: PublicKey,
pub expires_at: Option<Option<TimestampMs>>,
pub label: Option<Option<String>>,
pub scope: Option<Scope>,
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<Scope>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<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 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<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