pub struct Subject {
pub principal_scope: PrincipalScope,
pub subject_id: SubjectId,
pub principals: PrincipalSet,
}Expand description
Who a request acts as: a principal scope, stable id, and applicable principals.
Fields§
§principal_scope: PrincipalScopeIdentity domain for the subject’s principals.
Commit fingerprints and upload ownership use the subject id alone because a namespace has one scope and refuses subjects from any other scope.
subject_id: SubjectIdStable identity for upload ownership and commit replay.
principals: PrincipalSetPrincipals whose grants apply to the request.
Trait Implementations§
impl Eq for Subject
impl StructuralPartialEq for Subject
Auto Trait Implementations§
impl Freeze for Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnsafeUnpin for Subject
impl UnwindSafe for Subject
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