[][src]Struct google_storage1::Policy

pub struct Policy {
    pub resource_id: Option<String>,
    pub bindings: Option<Vec<PolicyBindings>>,
    pub etag: Option<String>,
    pub kind: Option<String>,
    pub version: Option<i32>,
}

A bucket/object IAM policy.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

resource_id: Option<String>

The ID of the resource to which this policy belongs. Will be of the form projects//buckets/bucket for buckets, and projects//buckets/bucket/objects/object for objects. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.

bindings: Option<Vec<PolicyBindings>>

An association between a role, which comes with a set of permissions, and members who may assume that role.

etag: Option<String>

HTTP 1.1 Entity tag for the policy.

kind: Option<String>

The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.

version: Option<i32>

The IAM policy format version.

Trait Implementations

impl Clone for Policy[src]

impl Debug for Policy[src]

impl Default for Policy[src]

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

impl RequestValue for Policy[src]

impl ResponseResult for Policy[src]

impl Serialize for Policy[src]

Auto Trait Implementations

impl RefUnwindSafe for Policy

impl Send for Policy

impl Sync for Policy

impl Unpin for Policy

impl UnwindSafe for Policy

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