pub struct SessionSearchScope { /* private fields */ }Expand description
Host-constructed authorization namespace. It is deliberately separate from user input.
Implementations§
Source§impl SessionSearchScope
impl SessionSearchScope
Sourcepub fn new(
namespace: impl Into<String>,
policy_fingerprint: impl Into<String>,
) -> Self
pub fn new( namespace: impl Into<String>, policy_fingerprint: impl Into<String>, ) -> Self
Construct a scope from a host-owned namespace and policy revision.
Sourcepub fn local(namespace: impl Into<String>) -> Self
pub fn local(namespace: impl Into<String>) -> Self
Construct the conventional single-user local-store scope.
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
Return a non-reversible digest suitable for cursor and mutation bindings.
Trait Implementations§
Source§impl Clone for SessionSearchScope
impl Clone for SessionSearchScope
Source§fn clone(&self) -> SessionSearchScope
fn clone(&self) -> SessionSearchScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionSearchScope
impl Debug for SessionSearchScope
impl Eq for SessionSearchScope
Source§impl PartialEq for SessionSearchScope
impl PartialEq for SessionSearchScope
impl StructuralPartialEq for SessionSearchScope
Auto Trait Implementations§
impl Freeze for SessionSearchScope
impl RefUnwindSafe for SessionSearchScope
impl Send for SessionSearchScope
impl Sync for SessionSearchScope
impl Unpin for SessionSearchScope
impl UnsafeUnpin for SessionSearchScope
impl UnwindSafe for SessionSearchScope
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