pub struct DialectId { /* private fields */ }Expand description
A registry dialect id, for example "rhino:archive-80".
Canonical form is <format>:<name>. The format contains lowercase ASCII
letters and digits. The name also admits dots and hyphens, but a hyphen
cannot be first or last. Outside the owning codec the validated id is an
opaque label.
Serializes and deserializes as the plain string. Read it with
DialectId::as_str or print it; there is no other access to the raw
string.
Implementations§
Source§impl DialectId
impl DialectId
Sourcepub const fn from_static(id: StaticDialectId) -> Self
pub const fn from_static(id: StaticDialectId) -> Self
Construct an id from admitted static text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DialectId
impl<'de> Deserialize<'de> for DialectId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DialectId
Source§impl FormatIdentityPayload for DialectId
impl FormatIdentityPayload for DialectId
impl StructuralPartialEq for DialectId
Auto Trait Implementations§
impl Freeze for DialectId
impl RefUnwindSafe for DialectId
impl Send for DialectId
impl Sync for DialectId
impl Unpin for DialectId
impl UnsafeUnpin for DialectId
impl UnwindSafe for DialectId
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