pub struct ContactRole {
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub name: String,
pub slug: String,
pub description: Option<String>,
pub tags: Option<Vec<NestedTag>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
}Expand description
ContactRole : Adds support for custom fields and tags.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§name: String§slug: String§description: Option<String>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>Implementations§
Source§impl ContactRole
impl ContactRole
Sourcepub fn new(name: String, slug: String) -> ContactRole
pub fn new(name: String, slug: String) -> ContactRole
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for ContactRole
impl Clone for ContactRole
Source§fn clone(&self) -> ContactRole
fn clone(&self) -> ContactRole
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 ContactRole
impl Debug for ContactRole
Source§impl Default for ContactRole
impl Default for ContactRole
Source§fn default() -> ContactRole
fn default() -> ContactRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContactRole
impl<'de> Deserialize<'de> for ContactRole
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 ContactRole
impl PartialEq for ContactRole
Source§impl Serialize for ContactRole
impl Serialize for ContactRole
impl StructuralPartialEq for ContactRole
Auto Trait Implementations§
impl Freeze for ContactRole
impl RefUnwindSafe for ContactRole
impl Send for ContactRole
impl Sync for ContactRole
impl Unpin for ContactRole
impl UnwindSafe for ContactRole
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