[−][src]Struct google_runtimeconfig1_beta1::Cardinality
A Cardinality condition for the Waiter resource. A cardinality condition is
met when the number of variables under a specified path prefix reaches a
predefined number. For example, if you set a Cardinality condition where
the path
is set to /foo
and the number of paths is set to 2
, the
following variables would meet the condition in a RuntimeConfig resource:
/foo/variable1 = "value1"
/foo/variable2 = "value2"
/bar/variable3 = "value3"
It would not satisfy the same condition with the number
set to
3
, however, because there is only 2 paths that start with /foo
.
Cardinality conditions are recursive; all subtrees under the specific
path prefix are counted.
This type is not used in any activity, and only used as part of another schema.
Fields
path: Option<String>
The root of the variable subtree to monitor. For example, /foo
.
number: Option<i32>
The number variables under the path
that must exist to meet this
condition. Defaults to 1 if not specified.
Trait Implementations
impl Clone for Cardinality
[src]
fn clone(&self) -> Cardinality
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Cardinality
[src]
impl Default for Cardinality
[src]
fn default() -> Cardinality
[src]
impl<'de> Deserialize<'de> for Cardinality
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for Cardinality
[src]
impl Serialize for Cardinality
[src]
Auto Trait Implementations
impl RefUnwindSafe for Cardinality
impl Send for Cardinality
impl Sync for Cardinality
impl Unpin for Cardinality
impl UnwindSafe for Cardinality
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,