pub enum Target {
Compose,
Kubernetes,
Helm,
}Expand description
Supported export targets.
Each variant maps to one crate::Emitter implementation and one
CLI argument value (see Target::label).
Variants§
Compose
A docker-compose.yml file, emitted by crate::ComposeEmitter.
Kubernetes
Plain Kubernetes manifests, emitted by crate::KubernetesEmitter.
Helm
A Helm chart (Chart.yaml, values.yaml, templates), emitted by
crate::HelmEmitter.
Implementations§
Source§impl Target
impl Target
Sourcepub fn label(self) -> &'static str
pub fn label(self) -> &'static str
Returns the stable lower-case label for this target.
The label doubles as the CLI argument value and as the default output sub-directory name.
use lightshuttle_export::Target;
assert_eq!(Target::Compose.label(), "compose");
assert_eq!(Target::Kubernetes.label(), "kubernetes");
assert_eq!(Target::Helm.label(), "helm");Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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.