#[non_exhaustive]pub struct ControlPlane {
pub config: Option<Config>,
}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.
Sourcepub fn get_remote(&self) -> Option<&Box<Remote>>
pub fn get_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 get_local(&self) -> Option<&Box<Local>>
pub fn get_local(&self) -> Option<&Box<Local>>
The value of config
if it holds a Local, None if the field is not set or
holds a different branch.
Trait Implementations§
Source§impl Clone for ControlPlane
impl Clone for ControlPlane
Source§fn clone(&self) -> ControlPlane
fn clone(&self) -> ControlPlane
Returns a copy 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<'de> Deserialize<'de> for ControlPlanewhere
ControlPlane: Default,
impl<'de> Deserialize<'de> for ControlPlanewhere
ControlPlane: Default,
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 Message for ControlPlane
impl Message for ControlPlane
Source§impl PartialEq for ControlPlane
impl PartialEq for ControlPlane
Source§impl Serialize for ControlPlane
impl Serialize 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