#[non_exhaustive]pub struct RolloutRestriction {
pub id: String,
pub invokers: Vec<Invoker>,
pub actions: Vec<RolloutActions>,
pub time_windows: Option<TimeWindows>,
/* private fields */
}
Expand description
Rollout restrictions.
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.id: String
Required. Restriction rule ID. Required and must be unique within a
DeployPolicy. The format is [a-z]([a-z0-9-]{0,61}[a-z0-9])?
.
invokers: Vec<Invoker>
Optional. What invoked the action. If left empty, all invoker types will be restricted.
actions: Vec<RolloutActions>
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
time_windows: Option<TimeWindows>
Required. Time window within which actions are restricted.
Implementations§
Source§impl RolloutRestriction
impl RolloutRestriction
pub fn new() -> Self
Sourcepub fn set_invokers<T, V>(self, v: T) -> Self
pub fn set_invokers<T, V>(self, v: T) -> Self
Sets the value of invokers.
Sourcepub fn set_actions<T, V>(self, v: T) -> Self
pub fn set_actions<T, V>(self, v: T) -> Self
Sets the value of actions.
Sourcepub fn set_time_windows<T>(self, v: T) -> Selfwhere
T: Into<TimeWindows>,
pub fn set_time_windows<T>(self, v: T) -> Selfwhere
T: Into<TimeWindows>,
Sets the value of time_windows.
Sourcepub fn set_or_clear_time_windows<T>(self, v: Option<T>) -> Selfwhere
T: Into<TimeWindows>,
pub fn set_or_clear_time_windows<T>(self, v: Option<T>) -> Selfwhere
T: Into<TimeWindows>,
Sets or clears the value of time_windows.
Trait Implementations§
Source§impl Clone for RolloutRestriction
impl Clone for RolloutRestriction
Source§fn clone(&self) -> RolloutRestriction
fn clone(&self) -> RolloutRestriction
Returns a duplicate 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 RolloutRestriction
impl Debug for RolloutRestriction
Source§impl Default for RolloutRestriction
impl Default for RolloutRestriction
Source§fn default() -> RolloutRestriction
fn default() -> RolloutRestriction
Returns the “default value” for a type. Read more
Source§impl Message for RolloutRestriction
impl Message for RolloutRestriction
Source§impl PartialEq for RolloutRestriction
impl PartialEq for RolloutRestriction
impl StructuralPartialEq for RolloutRestriction
Auto Trait Implementations§
impl Freeze for RolloutRestriction
impl RefUnwindSafe for RolloutRestriction
impl Send for RolloutRestriction
impl Sync for RolloutRestriction
impl Unpin for RolloutRestriction
impl UnwindSafe for RolloutRestriction
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