pub struct DownloadRoleValidator;Expand description
Validator for download role
Implementations§
Trait Implementations§
Source§impl Default for DownloadRoleValidator
impl Default for DownloadRoleValidator
Source§fn default() -> DownloadRoleValidator
fn default() -> DownloadRoleValidator
Returns the “default value” for a type. Read more
Source§impl RoleValidator for DownloadRoleValidator
impl RoleValidator for DownloadRoleValidator
Source§fn validate(&self, role: &ParsedRole) -> RoleValidationResult
fn validate(&self, role: &ParsedRole) -> RoleValidationResult
Validates a parsed role
Source§fn requires_target(&self) -> bool
fn requires_target(&self) -> bool
Returns whether this role requires a target
Source§fn allows_display_text(&self) -> bool
fn allows_display_text(&self) -> bool
Returns whether this role allows display text
Source§fn get_suggestions(&self, role: &ParsedRole) -> Vec<String>
fn get_suggestions(&self, role: &ParsedRole) -> Vec<String>
Provides suggestions for fixing role issues
Auto Trait Implementations§
impl Freeze for DownloadRoleValidator
impl RefUnwindSafe for DownloadRoleValidator
impl Send for DownloadRoleValidator
impl Sync for DownloadRoleValidator
impl Unpin for DownloadRoleValidator
impl UnwindSafe for DownloadRoleValidator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more