[][src]Struct pachyderm::pfs::RepoAuthInfo

pub struct RepoAuthInfo {
    pub access_level: i32,
}

RepoAuthInfo includes the caller's access scope for a repo, and is returned by ListRepo and InspectRepo but not persisted in etcd. It's used by the Pachyderm dashboard to render repo access appropriately. To set a user's auth scope for a repo, use the Pachyderm Auth API (in src/client/auth/auth.proto)

Fields

access_level: i32

The callers access level to the relevant repo (e.g. may be OWNER even if the user isn't an OWNER of the repo, if they're an admin for the cluster)

Implementations

impl RepoAuthInfo[src]

pub fn access_level(&self) -> Scope[src]

Returns the enum value of access_level, or the default if the field is set to an invalid enum value.

pub fn set_access_level(&mut self, value: Scope)[src]

Sets access_level to the provided enum value.

Trait Implementations

impl Clone for RepoAuthInfo[src]

impl Debug for RepoAuthInfo[src]

impl Default for RepoAuthInfo[src]

impl Message for RepoAuthInfo[src]

impl PartialEq<RepoAuthInfo> for RepoAuthInfo[src]

impl StructuralPartialEq for RepoAuthInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]