#[non_exhaustive]pub struct BindingDelta {
pub action: Action,
pub role: String,
pub member: String,
pub condition: Option<Expr>,
}Expand description
One delta entry for Binding. Each individual change (only one member in each entry) to a binding will be a separate entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.action: ActionThe action that was performed on a Binding. Required
role: StringRole that is assigned to members.
For example, roles/viewer, roles/editor, or roles/owner.
Required
member: StringA single identity requesting access for a Google Cloud resource. Follows the same format of Binding.members. Required
condition: Option<Expr>The condition that is associated with this binding.
Implementations§
Source§impl BindingDelta
impl BindingDelta
Sourcepub fn set_action<T: Into<Action>>(self, v: T) -> Self
pub fn set_action<T: Into<Action>>(self, v: T) -> Self
Sets the value of action.
Sourcepub fn set_member<T: Into<String>>(self, v: T) -> Self
pub fn set_member<T: Into<String>>(self, v: T) -> Self
Sets the value of member.
Trait Implementations§
Source§impl Clone for BindingDelta
impl Clone for BindingDelta
Source§fn clone(&self) -> BindingDelta
fn clone(&self) -> BindingDelta
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BindingDelta
impl Debug for BindingDelta
Source§impl Default for BindingDelta
impl Default for BindingDelta
Source§fn default() -> BindingDelta
fn default() -> BindingDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BindingDeltawhere
BindingDelta: Default,
impl<'de> Deserialize<'de> for BindingDeltawhere
BindingDelta: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for BindingDelta
impl Message for BindingDelta
Source§impl PartialEq for BindingDelta
impl PartialEq for BindingDelta
Source§impl Serialize for BindingDelta
impl Serialize for BindingDelta
impl StructuralPartialEq for BindingDelta
Auto Trait Implementations§
impl Freeze for BindingDelta
impl RefUnwindSafe for BindingDelta
impl Send for BindingDelta
impl Sync for BindingDelta
impl Unpin for BindingDelta
impl UnwindSafe for BindingDelta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more