#[non_exhaustive]pub struct ApprovalResult {
pub approver_account: String,
pub approval_time: Option<Timestamp>,
pub decision: Decision,
pub comment: String,
pub url: String,
}Expand description
ApprovalResult describes the decision and associated metadata of a 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.approver_account: StringOutput only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
approval_time: Option<Timestamp>Output only. The time when the approval decision was made.
decision: DecisionRequired. The decision of this manual approval.
comment: StringOptional. An optional comment for this manual approval result.
url: StringOptional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
Implementations§
Source§impl ApprovalResult
impl ApprovalResult
Sourcepub fn set_approver_account<T: Into<String>>(self, v: T) -> Self
pub fn set_approver_account<T: Into<String>>(self, v: T) -> Self
Sets the value of approver_account.
Sourcepub fn set_approval_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_approval_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of approval_time.
Sourcepub fn set_decision<T: Into<Decision>>(self, v: T) -> Self
pub fn set_decision<T: Into<Decision>>(self, v: T) -> Self
Sets the value of decision.
Sourcepub fn set_comment<T: Into<String>>(self, v: T) -> Self
pub fn set_comment<T: Into<String>>(self, v: T) -> Self
Sets the value of comment.
Trait Implementations§
Source§impl Clone for ApprovalResult
impl Clone for ApprovalResult
Source§fn clone(&self) -> ApprovalResult
fn clone(&self) -> ApprovalResult
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 ApprovalResult
impl Debug for ApprovalResult
Source§impl Default for ApprovalResult
impl Default for ApprovalResult
Source§fn default() -> ApprovalResult
fn default() -> ApprovalResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApprovalResultwhere
ApprovalResult: Default,
impl<'de> Deserialize<'de> for ApprovalResultwhere
ApprovalResult: 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 ApprovalResult
impl Message for ApprovalResult
Source§impl PartialEq for ApprovalResult
impl PartialEq for ApprovalResult
Source§impl Serialize for ApprovalResult
impl Serialize for ApprovalResult
impl StructuralPartialEq for ApprovalResult
Auto Trait Implementations§
impl Freeze for ApprovalResult
impl RefUnwindSafe for ApprovalResult
impl Send for ApprovalResult
impl Sync for ApprovalResult
impl Unpin for ApprovalResult
impl UnwindSafe for ApprovalResult
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