pub struct OverlayConfig {
pub mode: OverlayMode,
pub parent: Option<String>,
}Expand description
Per-service overlay configuration, populated from the service spec.
parent names another overlay this one should nest under. In v0.51 only
None / Some("cluster") is honored; any other value triggers a warn-
and-fallback (treated as None). Future rounds may allow service-of-
service nesting.
Fields§
§mode: OverlayMode§parent: Option<String>Implementations§
Source§impl OverlayConfig
impl OverlayConfig
Sourcepub fn resolved_parent_v0_51(&self) -> Option<&str>
pub fn resolved_parent_v0_51(&self) -> Option<&str>
Returns the resolved parent name for v0.51: None if the parent is
None or Some("cluster"); logs a warning and falls back to None
for any other value.
Trait Implementations§
Source§impl Clone for OverlayConfig
impl Clone for OverlayConfig
Source§fn clone(&self) -> OverlayConfig
fn clone(&self) -> OverlayConfig
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 OverlayConfig
impl Debug for OverlayConfig
Source§impl Default for OverlayConfig
impl Default for OverlayConfig
Source§fn default() -> OverlayConfig
fn default() -> OverlayConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OverlayConfig
impl<'de> Deserialize<'de> for OverlayConfig
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
impl Eq for OverlayConfig
Source§impl PartialEq for OverlayConfig
impl PartialEq for OverlayConfig
Source§fn eq(&self, other: &OverlayConfig) -> bool
fn eq(&self, other: &OverlayConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OverlayConfig
impl Serialize for OverlayConfig
impl StructuralPartialEq for OverlayConfig
Auto Trait Implementations§
impl Freeze for OverlayConfig
impl RefUnwindSafe for OverlayConfig
impl Send for OverlayConfig
impl Sync for OverlayConfig
impl Unpin for OverlayConfig
impl UnsafeUnpin for OverlayConfig
impl UnwindSafe for OverlayConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.