pub struct BriefContactRole {
pub id: Option<i32>,
pub url: Option<String>,
pub display: Option<String>,
pub name: String,
pub slug: String,
pub description: Option<String>,
}Expand description
BriefContactRole : Base serializer class for models inheriting from OrganizationalModel.
Fields§
§id: Option<i32>§url: Option<String>§display: Option<String>§name: String§slug: String§description: Option<String>Implementations§
Source§impl BriefContactRole
impl BriefContactRole
Sourcepub fn new(name: String, slug: String) -> BriefContactRole
pub fn new(name: String, slug: String) -> BriefContactRole
Base serializer class for models inheriting from OrganizationalModel.
Trait Implementations§
Source§impl Clone for BriefContactRole
impl Clone for BriefContactRole
Source§fn clone(&self) -> BriefContactRole
fn clone(&self) -> BriefContactRole
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 BriefContactRole
impl Debug for BriefContactRole
Source§impl Default for BriefContactRole
impl Default for BriefContactRole
Source§fn default() -> BriefContactRole
fn default() -> BriefContactRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BriefContactRole
impl<'de> Deserialize<'de> for BriefContactRole
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 BriefContactRole
impl PartialEq for BriefContactRole
Source§fn eq(&self, other: &BriefContactRole) -> bool
fn eq(&self, other: &BriefContactRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BriefContactRole
impl Serialize for BriefContactRole
impl StructuralPartialEq for BriefContactRole
Auto Trait Implementations§
impl Freeze for BriefContactRole
impl RefUnwindSafe for BriefContactRole
impl Send for BriefContactRole
impl Sync for BriefContactRole
impl Unpin for BriefContactRole
impl UnsafeUnpin for BriefContactRole
impl UnwindSafe for BriefContactRole
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