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

pub struct FileResource {
    pub path: String,
    pub state: i32,
    pub permissions: String,
    pub source: Option<Source>,
}

A resource that manages the state of a file.

Fields

path: String

Required. The absolute path of the file.

state: i32

Required. Desired state of the file.

permissions: String

Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755.

Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4

source: Option<Source>

The source for the contents of the file.

Implementations

impl FileResource[src]

pub fn state(&self) -> DesiredState[src]

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

pub fn set_state(&mut self, value: DesiredState)[src]

Sets state to the provided enum value.

Trait Implementations

impl Clone for FileResource[src]

impl Debug for FileResource[src]

impl Default for FileResource[src]

impl Message for FileResource[src]

impl PartialEq<FileResource> for FileResource[src]

impl StructuralPartialEq for FileResource[src]

Auto Trait Implementations

impl RefUnwindSafe for FileResource

impl Send for FileResource

impl Sync for FileResource

impl Unpin for FileResource

impl UnwindSafe for FileResource

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]