pub struct CallerContext {
pub app_name: String,
pub granted_permissions: Vec<String>,
}Expand description
Caller identity injected by the host proxy after JWT validation. Only present on requests that came through the scoped-JWT proxy route. Apps should trust this over any HTTP headers (headers are stripped by the proxy).
Fields§
§app_name: StringThe app name whose scoped JWT was used (always equals the receiving app’s name)
granted_permissions: Vec<String>Permissions granted by the user at consent time and embedded in the scoped JWT
Trait Implementations§
Source§impl Clone for CallerContext
impl Clone for CallerContext
Source§fn clone(&self) -> CallerContext
fn clone(&self) -> CallerContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CallerContext
impl Debug for CallerContext
Source§impl Default for CallerContext
impl Default for CallerContext
Source§fn default() -> CallerContext
fn default() -> CallerContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CallerContext
impl<'de> Deserialize<'de> for CallerContext
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 CallerContext
impl RefUnwindSafe for CallerContext
impl Send for CallerContext
impl Sync for CallerContext
impl Unpin for CallerContext
impl UnsafeUnpin for CallerContext
impl UnwindSafe for CallerContext
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