pub struct CreateApprovalDelegationRequest {
pub to_user_id: Uuid,
pub valid_from: Option<DateTime<Utc>>,
pub valid_until: DateTime<Utc>,
pub workflow_filter: Option<String>,
}Expand description
Create delegation request body.
The delegator is always the authenticated caller: a delegation can only be granted by the person handing over their own approval power.
Fields§
§to_user_id: UuidUser receiving the delegated approval power.
valid_from: Option<DateTime<Utc>>Start of the window. Defaults to now when omitted.
valid_until: DateTime<Utc>End of the window (exclusive).
workflow_filter: Option<String>Optional glob on the workflow name, e.g. "deploy-*". None = all workflows.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateApprovalDelegationRequest
impl<'de> Deserialize<'de> for CreateApprovalDelegationRequest
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<'v_a> ValidateArgs<'v_a> for CreateApprovalDelegationRequest
impl<'v_a> ValidateArgs<'v_a> for CreateApprovalDelegationRequest
Auto Trait Implementations§
impl Freeze for CreateApprovalDelegationRequest
impl RefUnwindSafe for CreateApprovalDelegationRequest
impl Send for CreateApprovalDelegationRequest
impl Sync for CreateApprovalDelegationRequest
impl Unpin for CreateApprovalDelegationRequest
impl UnsafeUnpin for CreateApprovalDelegationRequest
impl UnwindSafe for CreateApprovalDelegationRequest
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