pub struct Validator;Implementations§
Source§impl Validator
impl Validator
Sourcepub fn validate_file(file_path: &Path) -> Result<()>
pub fn validate_file(file_path: &Path) -> Result<()>
Valide qu’un fichier existe et est lisible
Sourcepub fn get_file_size(file_path: &Path) -> Result<u64>
pub fn get_file_size(file_path: &Path) -> Result<u64>
Obtient la taille d’un fichier en octets
Sourcepub fn format_file_size(size: u64) -> String
pub fn format_file_size(size: u64) -> String
Formate une taille en octets de manière lisible
Auto Trait Implementations§
impl Freeze for Validator
impl RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnwindSafe for Validator
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