Struct gapi_grpc::google::cloud::osconfig::agentendpoint::v1::os_policy::resource::ExecResource[][src]

pub struct ExecResource {
    pub validate: Option<Exec>,
    pub enforce: Option<Exec>,
}

A resource that contains custom validation and enforcement steps.

Fields

validate: Option<Exec>

Required. What to run to validate this resource is in the desired state. An exit code of 100 indicates “in desired state”, and exit code of 101 indicates “not in desired state”. Any other exit code indicates a failure running validate.

enforce: Option<Exec>

What to run to bring this resource into the desired state. A exit code of 100 indicates “success”, any other exit code idicates a failure running enforce.

Trait Implementations

impl Clone for ExecResource[src]

impl Debug for ExecResource[src]

impl Default for ExecResource[src]

impl Message for ExecResource[src]

impl PartialEq<ExecResource> for ExecResource[src]

impl StructuralPartialEq for ExecResource[src]

Auto Trait Implementations

impl RefUnwindSafe for ExecResource

impl Send for ExecResource

impl Sync for ExecResource

impl Unpin for ExecResource

impl UnwindSafe for ExecResource

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]