pub enum BatchIndexType {
Usize,
Uuid,
}
Variants§
Trait Implementations§
Source§impl Clone for BatchIndexType
impl Clone for BatchIndexType
Source§fn clone(&self) -> BatchIndexType
fn clone(&self) -> BatchIndexType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl FilePattern for BatchIndexType
impl FilePattern for BatchIndexType
Source§fn file_pattern(&self) -> Regex
fn file_pattern(&self) -> Regex
Constructs a regex pattern for matching batch filenames based on the provided BatchIndex
.
§Arguments
index_type
- TheBatchIndex
(either Usize or Uuid) which is used to determine the regex pattern.
§Returns
Regex
- A compiled regex pattern for matching batch file names.
§Panics
This function will panic if the regex pattern is invalid.
Source§impl From<&BatchIndex> for BatchIndexType
impl From<&BatchIndex> for BatchIndexType
Source§fn from(x: &BatchIndex) -> BatchIndexType
fn from(x: &BatchIndex) -> BatchIndexType
Converts to this type from the input type.
Source§impl Hash for BatchIndexType
impl Hash for BatchIndexType
Source§impl PartialEq for BatchIndexType
impl PartialEq for BatchIndexType
impl Copy for BatchIndexType
impl Eq for BatchIndexType
impl StructuralPartialEq for BatchIndexType
Auto Trait Implementations§
impl Freeze for BatchIndexType
impl RefUnwindSafe for BatchIndexType
impl Send for BatchIndexType
impl Sync for BatchIndexType
impl Unpin for BatchIndexType
impl UnwindSafe for BatchIndexType
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