pub enum ProviderKind {
Show 16 variants
Aws,
Azure,
DigitalOcean,
Gcp,
Hetzner,
I3d,
Leaseweb,
Linode,
Oracle,
Ovh,
Proxmox,
Scaleway,
Tailscale,
Transip,
UpCloud,
Vultr,
}Variants§
Aws
Azure
DigitalOcean
Gcp
Hetzner
I3d
Leaseweb
Linode
Oracle
Ovh
Proxmox
Scaleway
Tailscale
Transip
UpCloud
Vultr
Implementations§
Source§impl ProviderKind
impl ProviderKind
pub fn as_str(self) -> &'static str
Sourcepub fn default_auto_sync(self) -> bool
pub fn default_auto_sync(self) -> bool
Default auto_sync value for a new section of this provider.
Proxmox opts out by default because its API is N+1 per VM.
Sourcepub fn alias_prefix(self) -> &'static str
pub fn alias_prefix(self) -> &'static str
Canonical short alias-prefix suggestion shown in the provider form. Returned value is a project identifier, not localisable copy.
Sourcepub fn requires_url(self) -> bool
pub fn requires_url(self) -> bool
Whether this provider requires a url (Proxmox endpoint).
Sourcepub fn accepts_cli_regions(self) -> bool
pub fn accepts_cli_regions(self) -> bool
Whether the CLI’s --regions flag applies. Subset of has_regions_field
because not every provider with a regions form field also exposes the CLI flag.
Sourcepub fn has_regions_field(self) -> bool
pub fn has_regions_field(self) -> bool
Whether the provider form exposes a regions field at all.
Sourcepub fn regions_field_is_mandatory(self) -> bool
pub fn regions_field_is_mandatory(self) -> bool
Whether the regions field is mandatory for form submission.
GCP and Oracle have meaningful defaults so they are merely optional;
the others either need an explicit list or, for Azure, subscription IDs.
Sourcepub fn regions_field_is_picker(self) -> bool
pub fn regions_field_is_picker(self) -> bool
Whether activating the regions field opens a structured picker
rather than accepting free-form text. Azure takes subscription IDs
as free-form CSV input.
Sourcepub fn has_project_field(self) -> bool
pub fn has_project_field(self) -> bool
Whether the provider form exposes a project field.
Trait Implementations§
Source§impl Clone for ProviderKind
impl Clone for ProviderKind
Source§fn clone(&self) -> ProviderKind
fn clone(&self) -> ProviderKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderKind
impl Debug for ProviderKind
Source§impl Display for ProviderKind
impl Display for ProviderKind
Source§impl FromStr for ProviderKind
impl FromStr for ProviderKind
Source§impl Hash for ProviderKind
impl Hash for ProviderKind
Source§impl PartialEq for ProviderKind
impl PartialEq for ProviderKind
Source§fn eq(&self, other: &ProviderKind) -> bool
fn eq(&self, other: &ProviderKind) -> bool
self and other values to be equal, and is used by ==.impl Copy for ProviderKind
impl Eq for ProviderKind
impl StructuralPartialEq for ProviderKind
Auto Trait Implementations§
impl Freeze for ProviderKind
impl RefUnwindSafe for ProviderKind
impl Send for ProviderKind
impl Sync for ProviderKind
impl Unpin for ProviderKind
impl UnsafeUnpin for ProviderKind
impl UnwindSafe for ProviderKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more