pub struct Scope(/* private fields */);Expand description
A Scope is a sequence of key-value pairs that defines a (possibly nested) namespace within a
Usecase.
To construct a Scope, use Usecase::for_organization, Usecase::for_project, or
Usecase::scope for custom scopes.
Implementations§
Source§impl Scope
impl Scope
Sourcepub fn new(usecase: Usecase) -> Self
pub fn new(usecase: Usecase) -> Self
Creates a new root-level Scope for the given usecase.
Using a custom Scope is discouraged, prefer using Usecase::for_organization or Usecase::for_project instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scope
impl !RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl !UnwindSafe for Scope
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