pub struct Identity {
pub scope_type: ScopeType,
pub scope_id: String,
pub organization_id: String,
pub pod_id: Option<String>,
pub inbox_id: Option<String>,
pub api_key_id: Option<String>,
}Expand description
Who the current API key authenticates as, from [Client::auth_me].
Fields§
§scope_type: ScopeTypeWhether the key is scoped to the organization, a pod, or an inbox.
scope_id: StringId of the scope (organization_id, pod_id, or inbox_id).
organization_id: StringThe organization the key belongs to.
pod_id: Option<String>The pod, when the key is pod-scoped.
inbox_id: Option<String>The inbox, when the key is inbox-scoped.
api_key_id: Option<String>The API key’s own id.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Identity
impl<'de> Deserialize<'de> for Identity
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 Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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