pub struct ProviderRequirement {
pub provider_id: String,
pub provider_version: String,
}Expand description
Exact external provider capability required by a phase.
Fields§
§provider_id: StringStable provider family identifier.
provider_version: StringExact provider API/data version.
Implementations§
Source§impl ProviderRequirement
impl ProviderRequirement
Sourcepub fn new(
provider_id: impl Into<String>,
provider_version: impl Into<String>,
) -> Result<Self, DomainError>
pub fn new( provider_id: impl Into<String>, provider_version: impl Into<String>, ) -> Result<Self, DomainError>
Validate a provider requirement.
§Errors
Returns DomainError::InvalidProviderRequirement for empty fields.
Trait Implementations§
Source§impl Clone for ProviderRequirement
impl Clone for ProviderRequirement
Source§fn clone(&self) -> ProviderRequirement
fn clone(&self) -> ProviderRequirement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderRequirement
impl Debug for ProviderRequirement
impl Eq for ProviderRequirement
Source§impl Ord for ProviderRequirement
impl Ord for ProviderRequirement
Source§fn cmp(&self, other: &ProviderRequirement) -> Ordering
fn cmp(&self, other: &ProviderRequirement) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProviderRequirement
impl PartialEq for ProviderRequirement
Source§impl PartialOrd for ProviderRequirement
impl PartialOrd for ProviderRequirement
impl StructuralPartialEq for ProviderRequirement
Auto Trait Implementations§
impl Freeze for ProviderRequirement
impl RefUnwindSafe for ProviderRequirement
impl Send for ProviderRequirement
impl Sync for ProviderRequirement
impl Unpin for ProviderRequirement
impl UnsafeUnpin for ProviderRequirement
impl UnwindSafe for ProviderRequirement
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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