pub struct ContactRequest {
pub id: Option<Uuid>,
pub name: String,
pub phone: Option<String>,
pub email: Option<String>,
pub address: Option<String>,
pub comments: Option<String>,
pub custom_fields: Option<HashMap<String, Value>>,
pub relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>,
pub tags: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub teams: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
}Expand description
ContactRequest : Base class to use for serializers based on OrganizationalModel or PrimaryModel. Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
Fields§
§id: Option<Uuid>§name: String§phone: Option<String>§email: Option<String>§address: Option<String>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>§relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>§teams: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>Implementations§
Source§impl ContactRequest
impl ContactRequest
Sourcepub fn new(name: String) -> ContactRequest
pub fn new(name: String) -> ContactRequest
Base class to use for serializers based on OrganizationalModel or PrimaryModel. Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
Trait Implementations§
Source§impl Clone for ContactRequest
impl Clone for ContactRequest
Source§fn clone(&self) -> ContactRequest
fn clone(&self) -> ContactRequest
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 ContactRequest
impl Debug for ContactRequest
Source§impl Default for ContactRequest
impl Default for ContactRequest
Source§fn default() -> ContactRequest
fn default() -> ContactRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContactRequest
impl<'de> Deserialize<'de> for ContactRequest
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 ContactRequest
impl PartialEq for ContactRequest
Source§impl Serialize for ContactRequest
impl Serialize for ContactRequest
impl StructuralPartialEq for ContactRequest
Auto Trait Implementations§
impl Freeze for ContactRequest
impl RefUnwindSafe for ContactRequest
impl Send for ContactRequest
impl Sync for ContactRequest
impl Unpin for ContactRequest
impl UnsafeUnpin for ContactRequest
impl UnwindSafe for ContactRequest
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