pub struct IdentifierSchemeDefinition { /* private fields */ }Expand description
Documentation and optional local validation for one identifier scheme.
Implementations§
Source§impl IdentifierSchemeDefinition
impl IdentifierSchemeDefinition
Sourcepub const fn scheme(self) -> &'static str
pub const fn scheme(self) -> &'static str
Returns the exact scheme string stored with an external identifier.
Sourcepub const fn validation(self) -> IdentifierValidationKind
pub const fn validation(self) -> IdentifierValidationKind
Returns the local validation strength.
Sourcepub fn validate_value(self, value: &str) -> Result<()>
pub fn validate_value(self, value: &str) -> Result<()>
Checks the value without normalization or any registry/network access.
§Errors
Returns ErrorKind::InvalidArgument when a syntax-checked value does
not match the published lexical form supported by this definition.
Trait Implementations§
Source§impl Clone for IdentifierSchemeDefinition
impl Clone for IdentifierSchemeDefinition
Source§fn clone(&self) -> IdentifierSchemeDefinition
fn clone(&self) -> IdentifierSchemeDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdentifierSchemeDefinition
Auto Trait Implementations§
impl Freeze for IdentifierSchemeDefinition
impl RefUnwindSafe for IdentifierSchemeDefinition
impl Send for IdentifierSchemeDefinition
impl Sync for IdentifierSchemeDefinition
impl Unpin for IdentifierSchemeDefinition
impl UnsafeUnpin for IdentifierSchemeDefinition
impl UnwindSafe for IdentifierSchemeDefinition
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