#[non_exhaustive]pub struct Context<const N: usize> {
pub default_ns: &'static str,
pub prefixes: [Prefix; N],
pub force_prefix: bool,
}Expand description
Namespace context for serialization
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.default_ns: &'static strThe default namespace URI
prefixes: [Prefix; N]Array of namespace prefix mappings
force_prefix: boolForce prefix to be included always
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize> Freeze for Context<N>
impl<const N: usize> RefUnwindSafe for Context<N>
impl<const N: usize> Send for Context<N>
impl<const N: usize> Sync for Context<N>
impl<const N: usize> Unpin for Context<N>
impl<const N: usize> UnsafeUnpin for Context<N>
impl<const N: usize> UnwindSafe for Context<N>
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