pub struct UsageScope {
pub org: Option<String>,
pub user: Option<String>,
}Fields§
§org: Option<String>Org is the IAM org slug the rows were read under — the validated principal’s, never a client header.
user: Option<String>User is the caller’s own subject, whose linked-account rows the accounts block carries. Absent on a read that is org-scoped only.
Implementations§
Source§impl UsageScope
impl UsageScope
pub fn new() -> UsageScope
Trait Implementations§
Source§impl Clone for UsageScope
impl Clone for UsageScope
Source§fn clone(&self) -> UsageScope
fn clone(&self) -> UsageScope
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 UsageScope
impl Debug for UsageScope
Source§impl Default for UsageScope
impl Default for UsageScope
Source§fn default() -> UsageScope
fn default() -> UsageScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageScope
impl<'de> Deserialize<'de> for UsageScope
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
Source§impl PartialEq for UsageScope
impl PartialEq for UsageScope
Source§impl Serialize for UsageScope
impl Serialize for UsageScope
impl StructuralPartialEq for UsageScope
Auto Trait Implementations§
impl Freeze for UsageScope
impl RefUnwindSafe for UsageScope
impl Send for UsageScope
impl Sync for UsageScope
impl Unpin for UsageScope
impl UnsafeUnpin for UsageScope
impl UnwindSafe for UsageScope
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