pub struct CreateFieldRequest {
pub name: String,
pub options: Option<String>,
pub add_visible_flag: Option<bool>,
pub field_type: FieldType,
}Fields§
§name: StringThe name of the field
options: Option<String>When field_type is either set or enum, possible options must be supplied as a JSON-encoded sequential array of objects. Example: [{\"label\":\"New Item\"}]
add_visible_flag: Option<bool>Whether the field is available in the ‘add new’ modal or not (both in the web and mobile app)
field_type: FieldTypeThe type of the field
| Value | Description |
|---|---|
address | Address field (has multiple subfields, autocompleted by Google Maps) |
date | Date (format YYYY-MM-DD) |
daterange | Date-range field (has a start date and end date value, both YYYY-MM-DD) |
double | Numeric value |
enum | Options field with a single possible chosen option |
monetary | Monetary field (has a numeric value and a currency value) |
org | Organization field (contains an organization ID which is stored on the same account) |
people | Person field (contains a person ID which is stored on the same account) |
phone | Phone field (up to 255 numbers and/or characters) |
set | Options field with a possibility of having multiple chosen options |
text | Long text (up to 65k characters) |
time | Time field (format HH:MM:SS) |
timerange | Time-range field (has a start time and end time value, both HH:MM:SS) |
user | User field (contains a user ID of another Pipedrive user) |
varchar | Text (up to 255 characters) |
varchar_auto | Autocomplete text (up to 255 characters) |
visible_to | System field that keeps item’s visibility setting |
Implementations§
Source§impl CreateFieldRequest
impl CreateFieldRequest
pub fn new(name: String, field_type: FieldType) -> CreateFieldRequest
Trait Implementations§
Source§impl Clone for CreateFieldRequest
impl Clone for CreateFieldRequest
Source§fn clone(&self) -> CreateFieldRequest
fn clone(&self) -> CreateFieldRequest
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 CreateFieldRequest
impl Debug for CreateFieldRequest
Source§impl<'de> Deserialize<'de> for CreateFieldRequest
impl<'de> Deserialize<'de> for CreateFieldRequest
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 CreateFieldRequest
impl PartialEq for CreateFieldRequest
Source§impl Serialize for CreateFieldRequest
impl Serialize for CreateFieldRequest
impl StructuralPartialEq for CreateFieldRequest
Auto Trait Implementations§
impl Freeze for CreateFieldRequest
impl RefUnwindSafe for CreateFieldRequest
impl Send for CreateFieldRequest
impl Sync for CreateFieldRequest
impl Unpin for CreateFieldRequest
impl UnwindSafe for CreateFieldRequest
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