pub struct RackReservation {Show 17 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub rack: Box<BriefRack>,
pub units: Vec<i32>,
pub unit_count: Option<i32>,
pub status: Option<Box<RackReservationStatus>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub user: Box<BriefUser>,
pub tenant: Option<Option<Box<BriefTenant>>>,
pub description: String,
pub owner: Option<Option<Box<BriefOwner>>>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTag>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
RackReservation : Base serializer class for models inheriting from PrimaryModel.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§rack: Box<BriefRack>§units: Vec<i32>§unit_count: Option<i32>§status: Option<Box<RackReservationStatus>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§user: Box<BriefUser>§tenant: Option<Option<Box<BriefTenant>>>§description: String§owner: Option<Option<Box<BriefOwner>>>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Trait Implementations§
Source§impl Clone for RackReservation
impl Clone for RackReservation
Source§fn clone(&self) -> RackReservation
fn clone(&self) -> RackReservation
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 RackReservation
impl Debug for RackReservation
Source§impl Default for RackReservation
impl Default for RackReservation
Source§fn default() -> RackReservation
fn default() -> RackReservation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RackReservation
impl<'de> Deserialize<'de> for RackReservation
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 RackReservation
impl PartialEq for RackReservation
Source§fn eq(&self, other: &RackReservation) -> bool
fn eq(&self, other: &RackReservation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RackReservation
impl Serialize for RackReservation
impl StructuralPartialEq for RackReservation
Auto Trait Implementations§
impl Freeze for RackReservation
impl RefUnwindSafe for RackReservation
impl Send for RackReservation
impl Sync for RackReservation
impl Unpin for RackReservation
impl UnsafeUnpin for RackReservation
impl UnwindSafe for RackReservation
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