pub struct RecordId<'a>(/* private fields */);Expand description
A validated hierarchical identifier. Root is represented by None.
Implementations§
Source§impl<'a> RecordId<'a>
impl<'a> RecordId<'a>
Sourcepub fn new(value: &'a str) -> Result<Self, Error>
pub fn new(value: &'a str) -> Result<Self, Error>
Validates a non-root identifier without allocating.
Segments use ASCII letters, digits, _, ., +, or -.
§Errors
Returns Error::InvalidRecordId if the identifier or any segment is
empty, contains forbidden characters, or exceeds a length or depth limit.
Trait Implementations§
impl<'a> Copy for RecordId<'a>
impl<'a> Eq for RecordId<'a>
impl<'a> StructuralPartialEq for RecordId<'a>
Auto Trait Implementations§
impl<'a> Freeze for RecordId<'a>
impl<'a> RefUnwindSafe for RecordId<'a>
impl<'a> Send for RecordId<'a>
impl<'a> Sync for RecordId<'a>
impl<'a> Unpin for RecordId<'a>
impl<'a> UnsafeUnpin for RecordId<'a>
impl<'a> UnwindSafe for RecordId<'a>
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