pub struct KindBranch {
pub predicate: Predicate,
pub kind: String,
}Expand description
One arm of a values-predicate-selected kind: chain
(kind: {{ if $stateful }}StatefulSet{{ else }}Deployment{{ end }}).
The predicate holds exactly where this arm’s kind is the document’s kind. It is lowered in the same template scope as the body’s own branch conditions, so a use conjunction that carries the selecting predicate entails the arm structurally.
Fields§
§predicate: PredicatePredicate selecting this kind alternative.
kind: StringKubernetes kind emitted while the predicate holds.
Trait Implementations§
Source§impl Clone for KindBranch
impl Clone for KindBranch
Source§fn clone(&self) -> KindBranch
fn clone(&self) -> KindBranch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KindBranch
impl Debug for KindBranch
impl Eq for KindBranch
Source§impl Hash for KindBranch
impl Hash for KindBranch
Source§impl Ord for KindBranch
impl Ord for KindBranch
Source§fn cmp(&self, other: &KindBranch) -> Ordering
fn cmp(&self, other: &KindBranch) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KindBranch
impl PartialEq for KindBranch
Source§impl PartialOrd for KindBranch
impl PartialOrd for KindBranch
impl StructuralPartialEq for KindBranch
Auto Trait Implementations§
impl Freeze for KindBranch
impl RefUnwindSafe for KindBranch
impl Send for KindBranch
impl Sync for KindBranch
impl Unpin for KindBranch
impl UnsafeUnpin for KindBranch
impl UnwindSafe for KindBranch
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