pub struct GitOpsPlane {
pub applications: Option<Vec<GitOpsApp>>,
pub installed: Option<bool>,
pub reason: Option<String>,
}Fields§
§applications: Option<Vec<GitOpsApp>>Applications is every CD Application in the cluster, ordered by namespace then name. Empty (never null) when the plane is not installed, and equally empty when it is installed and tracks nothing — Installed is what separates those two.
installed: Option<bool>Installed is whether this cluster serves the CD Application CRD at all. False is a fact about the cluster, not a failure of the request: the caller says "no CD plane here" rather than rendering an error it cannot act on.
reason: Option<String>Reason says why the plane is absent, in words a caller can show. Empty when Installed.
Implementations§
Source§impl GitOpsPlane
impl GitOpsPlane
pub fn new() -> GitOpsPlane
Trait Implementations§
Source§impl Clone for GitOpsPlane
impl Clone for GitOpsPlane
Source§fn clone(&self) -> GitOpsPlane
fn clone(&self) -> GitOpsPlane
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 GitOpsPlane
impl Debug for GitOpsPlane
Source§impl Default for GitOpsPlane
impl Default for GitOpsPlane
Source§fn default() -> GitOpsPlane
fn default() -> GitOpsPlane
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GitOpsPlane
impl<'de> Deserialize<'de> for GitOpsPlane
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GitOpsPlane
impl PartialEq for GitOpsPlane
Source§impl Serialize for GitOpsPlane
impl Serialize for GitOpsPlane
impl StructuralPartialEq for GitOpsPlane
Auto Trait Implementations§
impl Freeze for GitOpsPlane
impl RefUnwindSafe for GitOpsPlane
impl Send for GitOpsPlane
impl Sync for GitOpsPlane
impl Unpin for GitOpsPlane
impl UnsafeUnpin for GitOpsPlane
impl UnwindSafe for GitOpsPlane
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