#[non_exhaustive]pub struct ControlPlane {
pub config: Option<Config>,
/* private fields */
}Expand description
Configuration of the cluster control plane.
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.config: Option<Config>Implementations§
Source§impl ControlPlane
impl ControlPlane
pub fn new() -> Self
Sourcepub fn set_config<T: Into<Option<Config>>>(self, v: T) -> Self
pub fn set_config<T: Into<Option<Config>>>(self, v: T) -> Self
Sets the value of config.
Note that all the setters affecting config are mutually
exclusive.
Sourcepub fn remote(&self) -> Option<&Box<Remote>>
pub fn remote(&self) -> Option<&Box<Remote>>
The value of config
if it holds a Remote, None if the field is not set or
holds a different branch.
Sourcepub fn set_remote<T: Into<Box<Remote>>>(self, v: T) -> Self
pub fn set_remote<T: Into<Box<Remote>>>(self, v: T) -> Self
Sets the value of config
to hold a Remote.
Note that all the setters affecting config are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ControlPlane
impl Clone for ControlPlane
Source§fn clone(&self) -> ControlPlane
fn clone(&self) -> ControlPlane
Returns a duplicate of the value. Read more
1.0.0 · 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 ControlPlane
impl Debug for ControlPlane
Source§impl Default for ControlPlane
impl Default for ControlPlane
Source§fn default() -> ControlPlane
fn default() -> ControlPlane
Returns the “default value” for a type. Read more
Source§impl Message for ControlPlane
impl Message for ControlPlane
Source§impl PartialEq for ControlPlane
impl PartialEq for ControlPlane
impl StructuralPartialEq for ControlPlane
Auto Trait Implementations§
impl Freeze for ControlPlane
impl RefUnwindSafe for ControlPlane
impl Send for ControlPlane
impl Sync for ControlPlane
impl Unpin for ControlPlane
impl UnwindSafe for ControlPlane
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