pub struct CrmAttributesPostRequest {
pub label: String,
pub attribute_type: AttributeType,
pub description: Option<String>,
pub options_labels: Option<Vec<String>>,
pub object_type: ObjectType,
}Fields§
§label: StringThe label for the attribute (max 50 characters, cannot be empty)
attribute_type: AttributeTypeThe type of attribute (must be one of the defined enums)
description: Option<String>A description of the attribute
options_labels: Option<Vec<String>>Options for multi-choice or single-select attributes
object_type: ObjectTypeThe type of object the attribute belongs to (prefilled with companies or deal, mandatory)
Implementations§
Source§impl CrmAttributesPostRequest
impl CrmAttributesPostRequest
pub fn new( label: String, attribute_type: AttributeType, object_type: ObjectType, ) -> CrmAttributesPostRequest
Trait Implementations§
Source§impl Clone for CrmAttributesPostRequest
impl Clone for CrmAttributesPostRequest
Source§fn clone(&self) -> CrmAttributesPostRequest
fn clone(&self) -> CrmAttributesPostRequest
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 CrmAttributesPostRequest
impl Debug for CrmAttributesPostRequest
Source§impl Default for CrmAttributesPostRequest
impl Default for CrmAttributesPostRequest
Source§fn default() -> CrmAttributesPostRequest
fn default() -> CrmAttributesPostRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CrmAttributesPostRequest
impl<'de> Deserialize<'de> for CrmAttributesPostRequest
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 CrmAttributesPostRequest
impl PartialEq for CrmAttributesPostRequest
Source§impl Serialize for CrmAttributesPostRequest
impl Serialize for CrmAttributesPostRequest
impl StructuralPartialEq for CrmAttributesPostRequest
Auto Trait Implementations§
impl Freeze for CrmAttributesPostRequest
impl RefUnwindSafe for CrmAttributesPostRequest
impl Send for CrmAttributesPostRequest
impl Sync for CrmAttributesPostRequest
impl Unpin for CrmAttributesPostRequest
impl UnwindSafe for CrmAttributesPostRequest
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