pub struct AddProductFieldRequest {
pub name: String,
pub options: Option<Vec<Value>>,
pub field_type: FieldType,
}
Fields§
§name: String
The name of the field
options: Option<Vec<Value>>
When field_type
is either set
or enum
, possible options must be supplied as a JSON-encoded sequential array, for example:[{\"label\":\"red\"}, {\"label\":\"blue\"}, {\"label\":\"lilac\"}]
field_type: FieldType
The type of the field
Value | Description |
---|---|
varchar | Text (up to 255 characters) |
varchar_auto | Autocomplete text (up to 255 characters) |
text | Long text (up to 65k characters) |
double | Numeric value |
monetary | Monetary field (has a numeric value and a currency value) |
date | Date (format YYYY-MM-DD) |
set | Options field with a possibility of having multiple chosen options |
enum | Options field with a single possible chosen option |
user | User field (contains a user ID of another Pipedrive user) |
org | Organization field (contains an organization ID which is stored on the same account) |
people | Person field (contains a product ID which is stored on the same account) |
phone | Phone field (up to 255 numbers and/or characters) |
time | Time field (format HH:MM:SS) |
timerange | Time-range field (has a start time and end time value, both HH:MM:SS) |
daterange | Date-range field (has a start date and end date value, both YYYY-MM-DD) |
address | Address field (autocompleted by Google Maps) |
Implementations§
Source§impl AddProductFieldRequest
impl AddProductFieldRequest
pub fn new(name: String, field_type: FieldType) -> AddProductFieldRequest
Trait Implementations§
Source§impl Clone for AddProductFieldRequest
impl Clone for AddProductFieldRequest
Source§fn clone(&self) -> AddProductFieldRequest
fn clone(&self) -> AddProductFieldRequest
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 AddProductFieldRequest
impl Debug for AddProductFieldRequest
Source§impl<'de> Deserialize<'de> for AddProductFieldRequest
impl<'de> Deserialize<'de> for AddProductFieldRequest
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 AddProductFieldRequest
impl PartialEq for AddProductFieldRequest
Source§impl Serialize for AddProductFieldRequest
impl Serialize for AddProductFieldRequest
impl StructuralPartialEq for AddProductFieldRequest
Auto Trait Implementations§
impl Freeze for AddProductFieldRequest
impl RefUnwindSafe for AddProductFieldRequest
impl Send for AddProductFieldRequest
impl Sync for AddProductFieldRequest
impl Unpin for AddProductFieldRequest
impl UnwindSafe for AddProductFieldRequest
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