pub struct ContactGroup {Show 15 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub name: String,
pub slug: String,
pub parent: Option<Option<Box<NestedContactGroup>>>,
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>>,
pub contact_count: Option<i32>,
pub comments: Option<String>,
pub _depth: Option<i32>,
}Expand description
ContactGroup : Extends PrimaryModelSerializer to include MPTT support.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§name: String§slug: String§parent: Option<Option<Box<NestedContactGroup>>>§description: Option<String>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§contact_count: Option<i32>§comments: Option<String>§_depth: Option<i32>Implementations§
Source§impl ContactGroup
impl ContactGroup
Sourcepub fn new(name: String, slug: String) -> ContactGroup
pub fn new(name: String, slug: String) -> ContactGroup
Extends PrimaryModelSerializer to include MPTT support.
Trait Implementations§
Source§impl Clone for ContactGroup
impl Clone for ContactGroup
Source§fn clone(&self) -> ContactGroup
fn clone(&self) -> ContactGroup
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 ContactGroup
impl Debug for ContactGroup
Source§impl Default for ContactGroup
impl Default for ContactGroup
Source§fn default() -> ContactGroup
fn default() -> ContactGroup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContactGroup
impl<'de> Deserialize<'de> for ContactGroup
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 ContactGroup
impl PartialEq for ContactGroup
Source§impl Serialize for ContactGroup
impl Serialize for ContactGroup
impl StructuralPartialEq for ContactGroup
Auto Trait Implementations§
impl Freeze for ContactGroup
impl RefUnwindSafe for ContactGroup
impl Send for ContactGroup
impl Sync for ContactGroup
impl Unpin for ContactGroup
impl UnwindSafe for ContactGroup
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