#[non_exhaustive]pub struct Uses {
pub format: Format,
pub provider: Option<Provider>,
pub target: Option<Target>,
}Expand description
What a run will use: its project’s format, the hypervisor a Vagrant project runs on, the platform a Terraform module makes its machines on.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: FormatThe project’s format.
provider: Option<Provider>The hypervisor (Vagrant’s --provider), when the run names one.
target: Option<Target>The platform a Terraform module makes its machines on, when known.
Implementations§
Source§impl Uses
impl Uses
Sourcepub fn requirements(&self) -> Vec<Requirement>
pub fn requirements(&self) -> Vec<Requirement>
What this computer must have for the run, in the order they are put right (a tool before what runs on it):
- Compose: the container engine, its Compose plugin, the engine answering;
- Vagrant on hypervisor P: Vagrant, P itself (unless it runs on a server), the VMware Utility where P drives VMware through it (before the plugin, which breaks Vagrant for every provider without it), P’s plugin, and VMware’s OVF Tool for ESXi;
- Terraform: Terraform, and its target’s: a cloud’s CLI where it signs in with one, the OVF Tool for ESXi.
A provider or target the format doesn’t use is ignored.
Trait Implementations§
impl Copy for Uses
impl Eq for Uses
impl StructuralPartialEq for Uses
Auto Trait Implementations§
impl Forget for Uses
impl Freeze for Uses
impl Move for Uses
impl RefUnwindSafe for Uses
impl Send for Uses
impl Sync for Uses
impl Unpin for Uses
impl UnsafeUnpin for Uses
impl UnwindSafe for Uses
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<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
Compare self to
key and return true if they are equal.