pub enum Access {
Blind {
id: RepositoryId,
},
ReadUnlocked {
id: RepositoryId,
read_key: SecretKey,
},
ReadLocked {
id: RepositoryId,
local_secret: SetLocalSecret,
read_key: SecretKey,
},
WriteUnlocked {
secrets: WriteSecrets,
},
WriteLocked {
local_read_secret: SetLocalSecret,
local_write_secret: SetLocalSecret,
secrets: WriteSecrets,
},
WriteLockedReadUnlocked {
local_write_secret: SetLocalSecret,
secrets: WriteSecrets,
},
}Variants§
Blind
Fields
§
id: RepositoryIdReadUnlocked
ReadLocked
WriteUnlocked
Fields
§
secrets: WriteSecretsWriteLocked
WriteLockedReadUnlocked
Implementations§
Source§impl Access
impl Access
pub fn new( local_read_secret: Option<SetLocalSecret>, local_write_secret: Option<SetLocalSecret>, secrets: AccessSecrets, ) -> Self
pub fn id(&self) -> &RepositoryId
pub fn secrets(self) -> AccessSecrets
pub fn local_write_secret(&self) -> Option<&SetLocalSecret>
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more