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