#[non_exhaustive]pub struct ApprovalConfig {
pub approval_required: bool,
}Expand description
ApprovalConfig describes configuration for manual approval of a build.
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.approval_required: boolWhether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.
Implementations§
Source§impl ApprovalConfig
impl ApprovalConfig
Sourcepub fn set_approval_required<T: Into<bool>>(self, v: T) -> Self
pub fn set_approval_required<T: Into<bool>>(self, v: T) -> Self
Sets the value of approval_required.
Trait Implementations§
Source§impl Clone for ApprovalConfig
impl Clone for ApprovalConfig
Source§fn clone(&self) -> ApprovalConfig
fn clone(&self) -> ApprovalConfig
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 ApprovalConfig
impl Debug for ApprovalConfig
Source§impl Default for ApprovalConfig
impl Default for ApprovalConfig
Source§fn default() -> ApprovalConfig
fn default() -> ApprovalConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApprovalConfigwhere
ApprovalConfig: Default,
impl<'de> Deserialize<'de> for ApprovalConfigwhere
ApprovalConfig: 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 ApprovalConfig
impl Message for ApprovalConfig
Source§impl PartialEq for ApprovalConfig
impl PartialEq for ApprovalConfig
Source§impl Serialize for ApprovalConfig
impl Serialize for ApprovalConfig
impl StructuralPartialEq for ApprovalConfig
Auto Trait Implementations§
impl Freeze for ApprovalConfig
impl RefUnwindSafe for ApprovalConfig
impl Send for ApprovalConfig
impl Sync for ApprovalConfig
impl Unpin for ApprovalConfig
impl UnwindSafe for ApprovalConfig
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