Struct gapi_grpc::google::cloud::osconfig::v1alpha::os_policy::resource::exec_resource::Exec[][src]

pub struct Exec {
    pub args: Vec<String>,
    pub interpreter: i32,
    pub output_file_path: String,
    pub source: Option<Source>,
}

A file or script to execute.

Fields

args: Vec<String>

Optional arguments to pass to the source during execution.

interpreter: i32

Required. The script interpreter to use.

output_file_path: String

Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.

source: Option<Source>

What to execute.

Implementations

impl Exec[src]

pub fn interpreter(&self) -> Interpreter[src]

Returns the enum value of interpreter, or the default if the field is set to an invalid enum value.

pub fn set_interpreter(&mut self, value: Interpreter)[src]

Sets interpreter to the provided enum value.

Trait Implementations

impl Clone for Exec[src]

impl Debug for Exec[src]

impl Default for Exec[src]

impl Message for Exec[src]

impl PartialEq<Exec> for Exec[src]

impl StructuralPartialEq for Exec[src]

Auto Trait Implementations

impl RefUnwindSafe for Exec

impl Send for Exec

impl Sync for Exec

impl Unpin for Exec

impl UnwindSafe for Exec

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]