Struct gapi_grpc::google::cloud::osconfig::v1alpha::os_policy::resource::FileResource [−][src]
A resource that manages the state of a file.
Fields
path: String
Required. The absolute path of the file within the VM.
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][+]
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,
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][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,