pub struct ApiKeyView {
pub id: String,
pub name: String,
pub user_id: String,
pub permissions: Vec<String>,
pub scopes: Vec<ApiKeyScope>,
pub created_at: u64,
pub last_used: Option<u64>,
pub expires_at: Option<u64>,
pub active: bool,
pub usage_count: u64,
}Expand description
Flattened key view returned by update_api_key_permissions and
get_api_key_usage. Mirrors the server’s ApiKeyView.
Fields§
§id: String§name: String§user_id: String§permissions: Vec<String>§scopes: Vec<ApiKeyScope>§created_at: u64§last_used: Option<u64>§expires_at: Option<u64>§active: bool§usage_count: u64Trait Implementations§
Source§impl Clone for ApiKeyView
impl Clone for ApiKeyView
Source§fn clone(&self) -> ApiKeyView
fn clone(&self) -> ApiKeyView
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 Debug for ApiKeyView
impl Debug for ApiKeyView
Source§impl<'de> Deserialize<'de> for ApiKeyView
impl<'de> Deserialize<'de> for ApiKeyView
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 ApiKeyView
impl RefUnwindSafe for ApiKeyView
impl Send for ApiKeyView
impl Sync for ApiKeyView
impl Unpin for ApiKeyView
impl UnsafeUnpin for ApiKeyView
impl UnwindSafe for ApiKeyView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request