[][src]Struct google_runtimeconfig1_beta1::Cardinality

pub struct Cardinality {
    pub path: Option<String>,
    pub number: Option<i32>,
}

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]

impl Debug for Cardinality[src]

impl Default for Cardinality[src]

impl<'de> Deserialize<'de> for Cardinality[src]

impl Part for Cardinality[src]

impl Serialize for Cardinality[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any