#[non_exhaustive]pub enum Resource {
Show 13 variants
Repository(RepositoryPlan),
Packages(Vec<PinnedPackage>),
Copy(CopyPlan),
File(FilePlan),
Template(TemplatePlan),
User(UserPlan),
Group(GroupPlan),
Service(ServicePlan),
Command(CommandPlan),
Firewall(Vec<PortSpec>),
Run(RunPlan),
Reboot,
Playbook(ProjectPath),
}Expand description
One resource of a recipe, in the order the recipe lists it: no renderer reorders, groups or parallelizes them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Repository(RepositoryPlan)
A vendor’s package repository.
Packages(Vec<PinnedPackage>)
Packages, installed together.
Copy(CopyPlan)
A project file or folder.
File(FilePlan)
A folder, a removal, a link or a download.
Template(TemplatePlan)
A template, filled in at generation.
User(UserPlan)
A user.
Group(GroupPlan)
A group.
Service(ServicePlan)
A daemon.
Command(CommandPlan)
A command, behind its guard.
Firewall(Vec<PortSpec>)
Ports opened in the OS’s firewall.
Run(RunPlan)
A project script.
Reboot
A restart.
Playbook(ProjectPath)
An Ansible playbook of the project.
Implementations§
Trait Implementations§
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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.