pub struct ApprovalWorkflowDefinitionRequest {
pub id: Option<Uuid>,
pub model_content_type: String,
pub name: String,
pub model_constraints: Option<Option<Value>>,
pub weight: Option<i32>,
pub custom_fields: Option<HashMap<String, Value>>,
pub relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>,
}Expand description
ApprovalWorkflowDefinitionRequest : ApprovalWorkflowDefinition Serializer.
Fields§
§id: Option<Uuid>§model_content_type: String§name: String§model_constraints: Option<Option<Value>>Constraints to filter the objects that can be approved using this workflow.
weight: Option<i32>Determines workflow relevance when multiple apply. Higher weight wins.
custom_fields: Option<HashMap<String, Value>>§relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>Implementations§
Source§impl ApprovalWorkflowDefinitionRequest
impl ApprovalWorkflowDefinitionRequest
Sourcepub fn new(
model_content_type: String,
name: String,
) -> ApprovalWorkflowDefinitionRequest
pub fn new( model_content_type: String, name: String, ) -> ApprovalWorkflowDefinitionRequest
ApprovalWorkflowDefinition Serializer.
Trait Implementations§
Source§impl Clone for ApprovalWorkflowDefinitionRequest
impl Clone for ApprovalWorkflowDefinitionRequest
Source§fn clone(&self) -> ApprovalWorkflowDefinitionRequest
fn clone(&self) -> ApprovalWorkflowDefinitionRequest
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 Default for ApprovalWorkflowDefinitionRequest
impl Default for ApprovalWorkflowDefinitionRequest
Source§fn default() -> ApprovalWorkflowDefinitionRequest
fn default() -> ApprovalWorkflowDefinitionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApprovalWorkflowDefinitionRequest
impl<'de> Deserialize<'de> for ApprovalWorkflowDefinitionRequest
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 PartialEq for ApprovalWorkflowDefinitionRequest
impl PartialEq for ApprovalWorkflowDefinitionRequest
Source§fn eq(&self, other: &ApprovalWorkflowDefinitionRequest) -> bool
fn eq(&self, other: &ApprovalWorkflowDefinitionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApprovalWorkflowDefinitionRequest
Auto Trait Implementations§
impl Freeze for ApprovalWorkflowDefinitionRequest
impl RefUnwindSafe for ApprovalWorkflowDefinitionRequest
impl Send for ApprovalWorkflowDefinitionRequest
impl Sync for ApprovalWorkflowDefinitionRequest
impl Unpin for ApprovalWorkflowDefinitionRequest
impl UnsafeUnpin for ApprovalWorkflowDefinitionRequest
impl UnwindSafe for ApprovalWorkflowDefinitionRequest
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