pub struct DeviceBay {Show 16 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub device: Box<BriefDevice>,
pub name: String,
pub label: Option<String>,
pub enabled: Option<bool>,
pub description: Option<String>,
pub installed_device: Option<Option<Box<BriefDevice>>>,
pub owner: Option<Option<Box<BriefOwner>>>,
pub tags: Option<Vec<NestedTag>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub _occupied: Option<bool>,
}Expand description
DeviceBay : Adds an owner field for models which have a ForeignKey to users.Owner.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§device: Box<BriefDevice>§name: String§label: Option<String>Physical label
enabled: Option<bool>§description: Option<String>§installed_device: Option<Option<Box<BriefDevice>>>§owner: Option<Option<Box<BriefOwner>>>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§_occupied: Option<bool>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DeviceBay
impl<'de> Deserialize<'de> for DeviceBay
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
impl StructuralPartialEq for DeviceBay
Auto Trait Implementations§
impl Freeze for DeviceBay
impl RefUnwindSafe for DeviceBay
impl Send for DeviceBay
impl Sync for DeviceBay
impl Unpin for DeviceBay
impl UnsafeUnpin for DeviceBay
impl UnwindSafe for DeviceBay
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