pub enum Dependency {
Show 13 variants
Docker,
Vagrant,
Terraform,
Virtualbox,
Qemu,
Utm,
Libvirt,
Awscli,
Azurecli,
Gcloud,
Wsl,
VmwareUtility,
Hyperv,
}Expand description
A tool a setup installs.
Variants§
Docker
Docker: Docker Desktop on macOS and Windows, Docker Engine on Linux.
Vagrant
HashiCorp’s Vagrant.
Terraform
HashiCorp’s Terraform.
Virtualbox
Oracle’s VirtualBox.
Qemu
QEMU.
Utm
UTM (macOS).
Libvirt
libvirt, with what the vagrant-libvirt plugin builds against (Linux).
Awscli
The AWS CLI.
Azurecli
The Azure CLI.
Gcloud
The Google Cloud CLI.
Wsl
Windows Subsystem for Linux (WSL 2), enabled through its own installer.
VmwareUtility
HashiCorp’s Vagrant VMware Utility, the service VMware’s Vagrant plugin drives VMware through.
Hyperv
Windows’ Hyper-V feature, turned on through Windows’ own servicing tool (DISM).
Implementations§
Source§impl Dependency
impl Dependency
Sourcepub const ALL: [Dependency; 13]
pub const ALL: [Dependency; 13]
Every tool, in the setup’s order.
Sourcepub fn of_hypervisor(provider: Provider) -> Option<Dependency>
pub fn of_hypervisor(provider: Provider) -> Option<Dependency>
The tool a setup installs as hypervisor provider, where it does (the row that names it).
Sourcepub fn serves(self) -> Option<Provider>
pub fn serves(self) -> Option<Provider>
The hypervisor it serves without being it, when it does: VMware’s utility serves VMware
Workstation (or Fusion), whose installer it needs first (Windows’ MSI refuses to run
without it, exiting 1603; on Linux its service doesn’t answer). A setup installs it once
that hypervisor is installed, never before (crate::requirements::Plan::After).
Sourcepub fn hypervisor(self) -> Option<Provider>
pub fn hypervisor(self) -> Option<Provider>
The hypervisor it is, when it is one.
Sourcepub fn no_build(self, os: HostOs, arch: Arch) -> Option<&'static str>
pub fn no_build(self, os: HostOs, arch: Arch) -> Option<&'static str>
Why its vendor ships no build of it for os on arch that a setup installs, when it
doesn’t (ToolRow::no_build).
Sourcepub fn runs_on(self, os: HostOs) -> bool
pub fn runs_on(self, os: HostOs) -> bool
Whether it exists on os: a hypervisor where its provider’s row says, the rest by its own
row. An install or a removal elsewhere is refused (Refusal::NotHere).
Trait Implementations§
Source§impl Clone for Dependency
impl Clone for Dependency
impl Copy for Dependency
Source§impl Debug for Dependency
impl Debug for Dependency
Source§impl<'de> Deserialize<'de> for Dependency
impl<'de> Deserialize<'de> for Dependency
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>,
impl Eq for Dependency
Source§impl Hash for Dependency
impl Hash for Dependency
Source§impl Ord for Dependency
impl Ord for Dependency
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for Dependency
impl PartialEq for Dependency
Source§impl PartialOrd for Dependency
impl PartialOrd for Dependency
Source§impl Serialize for Dependency
impl Serialize for Dependency
impl StructuralPartialEq for Dependency
Source§impl TS for Dependency
impl TS for Dependency
Source§type WithoutGenerics = Dependency
type WithoutGenerics = Dependency
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = Dependency
type OptionInnerType = Dependency
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read moreSource§fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
Auto Trait Implementations§
impl Forget for Dependency
impl Freeze for Dependency
impl Move for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnsafeUnpin for Dependency
impl UnwindSafe for Dependency
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.