pub struct IdManager<F> { /* private fields */ }Expand description
ID Manager handles ID generation, validation, and operations within a vault context
Implementations§
Source§impl<F> IdManager<F>
impl<F> IdManager<F>
Sourcepub fn new(config: IdConfig, existence_checker: F) -> Self
pub fn new(config: IdConfig, existence_checker: F) -> Self
Create new ID manager with configuration and existence checker
Sourcepub fn extract_from_filename(&self, filename: &str) -> Option<Id>
pub fn extract_from_filename(&self, filename: &str) -> Option<Id>
Extract ID from filename based on configured rules
Sourcepub fn next_available_sibling(&self, current_id: &Id) -> IdResult<Id>
pub fn next_available_sibling(&self, current_id: &Id) -> IdResult<Id>
Generate next available sibling ID
Sourcepub fn next_available_child(&self, parent_id: &Id) -> Id
pub fn next_available_child(&self, parent_id: &Id) -> Id
Generate next available child ID
Sourcepub fn validate_id(&self, id_str: &str) -> IdResult<Id>
pub fn validate_id(&self, id_str: &str) -> IdResult<Id>
Validate an ID string
Auto Trait Implementations§
impl<F> Freeze for IdManager<F>where
F: Freeze,
impl<F> RefUnwindSafe for IdManager<F>where
F: RefUnwindSafe,
impl<F> Send for IdManager<F>where
F: Send,
impl<F> Sync for IdManager<F>where
F: Sync,
impl<F> Unpin for IdManager<F>where
F: Unpin,
impl<F> UnsafeUnpin for IdManager<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for IdManager<F>where
F: UnwindSafe,
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