pub struct CreateContactPropertyOptions { /* private fields */ }Expand description
Details of a new ContactProperty.
Implementations§
Source§impl CreateContactPropertyOptions
impl CreateContactPropertyOptions
Sourcepub fn new(key: impl Into<String>, type: PropertyType) -> Self
pub fn new(key: impl Into<String>, type: PropertyType) -> Self
key: The property key. Max length is50characters. Only alphanumeric characters and underscores are allowed.r#type: The property type.
Sourcepub fn with_fallback(self, fallback: impl Into<Value>) -> Self
pub fn with_fallback(self, fallback: impl Into<Value>) -> Self
The default value to use when the property is not set for a contact. Must match the
type specified in the r#type field.
Trait Implementations§
Source§impl Clone for CreateContactPropertyOptions
impl Clone for CreateContactPropertyOptions
Source§fn clone(&self) -> CreateContactPropertyOptions
fn clone(&self) -> CreateContactPropertyOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateContactPropertyOptions
impl Debug for CreateContactPropertyOptions
Auto Trait Implementations§
impl Freeze for CreateContactPropertyOptions
impl RefUnwindSafe for CreateContactPropertyOptions
impl Send for CreateContactPropertyOptions
impl Sync for CreateContactPropertyOptions
impl Unpin for CreateContactPropertyOptions
impl UnsafeUnpin for CreateContactPropertyOptions
impl UnwindSafe for CreateContactPropertyOptions
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