pub struct AddPersonRequest {
pub name: String,
pub owner_id: Option<i32>,
pub org_id: Option<i32>,
pub email: Option<Vec<BasicPersonRequestEmailInner>>,
pub phone: Option<Vec<PersonItemAllOfPhoneInner>>,
pub visible_to: Option<VisibleTo>,
pub marketing_status: Option<MarketingStatus>,
pub add_time: Option<String>,
}
Fields§
§name: String
The name of the person
owner_id: Option<i32>
The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used.
org_id: Option<i32>
The ID of the organization this person will belong to
email: Option<Vec<BasicPersonRequestEmailInner>>
An email address as a string or an array of email objects related to the person. The structure of the array is as follows: [{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]
. Please note that only value
is required.
phone: Option<Vec<PersonItemAllOfPhoneInner>>
A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: [{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]
. Please note that only value
is required.
visible_to: Option<VisibleTo>
§marketing_status: Option<MarketingStatus>
§add_time: Option<String>
The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
Implementations§
Source§impl AddPersonRequest
impl AddPersonRequest
pub fn new(name: String) -> AddPersonRequest
Trait Implementations§
Source§impl Clone for AddPersonRequest
impl Clone for AddPersonRequest
Source§fn clone(&self) -> AddPersonRequest
fn clone(&self) -> AddPersonRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more