#[non_exhaustive]pub struct NamespaceResponse {
pub personal: Vec<NamespaceDescriptor>,
pub other: Vec<NamespaceDescriptor>,
pub shared: Vec<NamespaceDescriptor>,
}Expand description
Result of a NAMESPACE command (RFC 2342 Section 5).
Groups the three namespace categories into named fields instead of a positional tuple, making it safe to extend in the future.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.personal: Vec<NamespaceDescriptor>Personal namespaces (RFC 2342 Section 5).
other: Vec<NamespaceDescriptor>Other users’ namespaces (RFC 2342 Section 5).
Shared namespaces (RFC 2342 Section 5).
Trait Implementations§
Source§impl Clone for NamespaceResponse
impl Clone for NamespaceResponse
Source§fn clone(&self) -> NamespaceResponse
fn clone(&self) -> NamespaceResponse
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 Debug for NamespaceResponse
impl Debug for NamespaceResponse
Source§impl Default for NamespaceResponse
impl Default for NamespaceResponse
Source§fn default() -> NamespaceResponse
fn default() -> NamespaceResponse
Returns the “default value” for a type. Read more
Source§impl Hash for NamespaceResponse
impl Hash for NamespaceResponse
Source§impl PartialEq for NamespaceResponse
impl PartialEq for NamespaceResponse
impl Eq for NamespaceResponse
impl StructuralPartialEq for NamespaceResponse
Auto Trait Implementations§
impl Freeze for NamespaceResponse
impl RefUnwindSafe for NamespaceResponse
impl Send for NamespaceResponse
impl Sync for NamespaceResponse
impl Unpin for NamespaceResponse
impl UnsafeUnpin for NamespaceResponse
impl UnwindSafe for NamespaceResponse
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