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