pub struct DocumentRecoveryBinding { /* private fields */ }Expand description
Trusted application and collection scope authenticated with every snapshot.
Implementations§
Source§impl DocumentRecoveryBinding
impl DocumentRecoveryBinding
Sourcepub fn try_new(
application_namespace: impl Into<String>,
collection: CollectionName,
) -> Result<Self, DocumentRecoveryError>
pub fn try_new( application_namespace: impl Into<String>, collection: CollectionName, ) -> Result<Self, DocumentRecoveryError>
Creates a scope from trusted application configuration.
Sourcepub fn application_namespace(&self) -> &str
pub fn application_namespace(&self) -> &str
Returns the trusted application namespace.
Sourcepub fn collection(&self) -> &CollectionName
pub fn collection(&self) -> &CollectionName
Returns the collection authenticated by the snapshot.
Trait Implementations§
Source§impl Clone for DocumentRecoveryBinding
impl Clone for DocumentRecoveryBinding
Source§impl Debug for DocumentRecoveryBinding
impl Debug for DocumentRecoveryBinding
impl Eq for DocumentRecoveryBinding
Source§impl PartialEq for DocumentRecoveryBinding
impl PartialEq for DocumentRecoveryBinding
impl StructuralPartialEq for DocumentRecoveryBinding
Auto Trait Implementations§
impl Freeze for DocumentRecoveryBinding
impl RefUnwindSafe for DocumentRecoveryBinding
impl Send for DocumentRecoveryBinding
impl Sync for DocumentRecoveryBinding
impl Unpin for DocumentRecoveryBinding
impl UnsafeUnpin for DocumentRecoveryBinding
impl UnwindSafe for DocumentRecoveryBinding
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
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§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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