pub enum ProviderFeasibility {
Supported {
estimate: ProviderResourceEstimate,
},
Rejected {
rejection: ProviderRejection,
},
}Variants§
Implementations§
Source§impl ProviderFeasibility
impl ProviderFeasibility
pub fn supported(estimate: ProviderResourceEstimate) -> Self
pub fn rejected(code: ProviderRejectionCode, detail: &'static str) -> Self
pub fn is_supported(&self) -> bool
Trait Implementations§
Source§impl Clone for ProviderFeasibility
impl Clone for ProviderFeasibility
Source§fn clone(&self) -> ProviderFeasibility
fn clone(&self) -> ProviderFeasibility
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 ProviderFeasibility
impl Debug for ProviderFeasibility
Source§impl<'de> Deserialize<'de> for ProviderFeasibility
impl<'de> Deserialize<'de> for ProviderFeasibility
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProviderFeasibility
Source§impl PartialEq for ProviderFeasibility
impl PartialEq for ProviderFeasibility
Source§impl Serialize for ProviderFeasibility
impl Serialize for ProviderFeasibility
impl StructuralPartialEq for ProviderFeasibility
Auto Trait Implementations§
impl Freeze for ProviderFeasibility
impl RefUnwindSafe for ProviderFeasibility
impl Send for ProviderFeasibility
impl Sync for ProviderFeasibility
impl Unpin for ProviderFeasibility
impl UnsafeUnpin for ProviderFeasibility
impl UnwindSafe for ProviderFeasibility
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