pub struct ValidationErrorHandler;Expand description
Validation error utilities
Implementations§
Source§impl ValidationErrorHandler
impl ValidationErrorHandler
Sourcepub fn validate_file_path(file_path: &str) -> Result<()>
pub fn validate_file_path(file_path: &str) -> Result<()>
Standard file validation error messages
Sourcepub fn validate_repository_url(url: &str) -> Result<()>
pub fn validate_repository_url(url: &str) -> Result<()>
Standard URL validation
Sourcepub fn validate_credentials(
username: &Option<String>,
password: &Option<String>,
) -> Result<()>
pub fn validate_credentials( username: &Option<String>, password: &Option<String>, ) -> Result<()>
Standard credential validation
Sourcepub fn validate_timeout(timeout: u64) -> Result<()>
pub fn validate_timeout(timeout: u64) -> Result<()>
Standard numeric range validation
Auto Trait Implementations§
impl Freeze for ValidationErrorHandler
impl RefUnwindSafe for ValidationErrorHandler
impl Send for ValidationErrorHandler
impl Sync for ValidationErrorHandler
impl Unpin for ValidationErrorHandler
impl UnwindSafe for ValidationErrorHandler
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