pub struct NamespaceRegistryBuilder { /* private fields */ }Expand description
Builder used to create a NamespaceRegistry
Implementations§
Source§impl NamespaceRegistryBuilder
impl NamespaceRegistryBuilder
pub fn new() -> Self
pub fn with_namespace(self, namespace: String) -> NamespaceRegistryBuilder
pub fn with_owners(self, owners: Vec<String>) -> NamespaceRegistryBuilder
pub fn with_permissions( self, permissions: Vec<Permission>, ) -> NamespaceRegistryBuilder
pub fn build(self) -> Result<NamespaceRegistry, NamespaceRegistryBuildError>
Trait Implementations§
Source§impl Clone for NamespaceRegistryBuilder
impl Clone for NamespaceRegistryBuilder
Source§fn clone(&self) -> NamespaceRegistryBuilder
fn clone(&self) -> NamespaceRegistryBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for NamespaceRegistryBuilder
impl Default for NamespaceRegistryBuilder
Source§fn default() -> NamespaceRegistryBuilder
fn default() -> NamespaceRegistryBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NamespaceRegistryBuilder
impl RefUnwindSafe for NamespaceRegistryBuilder
impl Send for NamespaceRegistryBuilder
impl Sync for NamespaceRegistryBuilder
impl Unpin for NamespaceRegistryBuilder
impl UnwindSafe for NamespaceRegistryBuilder
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<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.Source§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.