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