pub struct BriefRackRole {
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
BriefRackRole : Adds support for custom fields and tags.
Fields§
§id: Option<i32>§url: Option<String>§display: Option<String>§name: String§slug: String§description: Option<String>§rack_count: Option<i64>Implementations§
Source§impl BriefRackRole
impl BriefRackRole
Sourcepub fn new(name: String, slug: String) -> BriefRackRole
pub fn new(name: String, slug: String) -> BriefRackRole
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for BriefRackRole
impl Clone for BriefRackRole
Source§fn clone(&self) -> BriefRackRole
fn clone(&self) -> BriefRackRole
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 BriefRackRole
impl Debug for BriefRackRole
Source§impl Default for BriefRackRole
impl Default for BriefRackRole
Source§fn default() -> BriefRackRole
fn default() -> BriefRackRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BriefRackRole
impl<'de> Deserialize<'de> for BriefRackRole
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 BriefRackRole
impl PartialEq for BriefRackRole
Source§impl Serialize for BriefRackRole
impl Serialize for BriefRackRole
impl StructuralPartialEq for BriefRackRole
Auto Trait Implementations§
impl Freeze for BriefRackRole
impl RefUnwindSafe for BriefRackRole
impl Send for BriefRackRole
impl Sync for BriefRackRole
impl Unpin for BriefRackRole
impl UnwindSafe for BriefRackRole
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