pub struct Rel(pub String);Expand description
Rel is a relation (or computed permission) on an object.
Tuple Fields§
§0: StringImplementations§
Source§impl Rel
Built-in relations (nio domain / check bootstrap). Roles
(admin/editor/viewer) carry direct tuples; dotted names are computed
permissions. The admin gate triple is iam:root#iam.get|iam.update.
impl Rel
Built-in relations (nio domain / check bootstrap). Roles (admin/editor/viewer) carry direct tuples; dotted names are computed permissions. The admin gate triple is iam:root#iam.get|iam.update.
pub const IS: &'static str = "is"
pub const UNSPECIFIED: &'static str = "..."
pub const PARENT: &'static str = "parent"
pub const ADMIN: &'static str = "admin"
pub const EDITOR: &'static str = "editor"
pub const VIEWER: &'static str = "viewer"
pub const IAM_GET: &'static str = "iam.get"
pub const IAM_UPDATE: &'static str = "iam.update"
pub const IAM_DELETE: &'static str = "iam.delete"
pub const SERVICEACCOUNT_GET: &'static str = "serviceaccount.get"
pub const SERVICEACCOUNT_CREATE: &'static str = "serviceaccount.create"
pub const SERVICEACCOUNT_UPDATE: &'static str = "serviceaccount.update"
pub const SERVICEACCOUNT_CREATE_TOKEN: &'static str = "serviceaccount.createToken"
pub const SERVICEACCOUNT_KEY_CREATE: &'static str = "serviceaccount.key.create"
pub const SERVICEACCOUNT_KEY_GET: &'static str = "serviceaccount.key.get"
pub const USER_CREATE: &'static str = "user.create"
Sourcepub const IMPOSSIBLE: &'static str = "impossible"
pub const IMPOSSIBLE: &'static str = "impossible"
A relation that never holds. CheckClient::check short-circuits it
to a denial without an RPC.
pub fn is() -> Rel
pub fn unspecified() -> Rel
pub fn parent() -> Rel
pub fn admin() -> Rel
pub fn editor() -> Rel
pub fn viewer() -> Rel
pub fn iam_get() -> Rel
pub fn iam_update() -> Rel
pub fn iam_delete() -> Rel
pub fn serviceaccount_get() -> Rel
pub fn serviceaccount_create() -> Rel
pub fn serviceaccount_update() -> Rel
pub fn serviceaccount_create_token() -> Rel
pub fn serviceaccount_key_create() -> Rel
pub fn serviceaccount_key_get() -> Rel
pub fn user_create() -> Rel
pub fn impossible() -> Rel
Trait Implementations§
impl Eq for Rel
impl StructuralPartialEq for Rel
Auto Trait Implementations§
impl Freeze for Rel
impl RefUnwindSafe for Rel
impl Send for Rel
impl Sync for Rel
impl Unpin for Rel
impl UnsafeUnpin for Rel
impl UnwindSafe for Rel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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