pub struct ModuleBayTemplate {Show 17 fields
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: Option<String>,
pub notes_url: Option<String>,
pub name: String,
pub position: Option<String>,
pub label: Option<String>,
pub description: Option<String>,
pub requires_first_party_modules: Option<bool>,
pub device_type: Option<Option<Box<ApprovalWorkflowUser>>>,
pub module_type: Option<Option<Box<ApprovalWorkflowUser>>>,
pub module_family: Option<Option<Box<BulkWritableModuleBayTemplateRequestModuleFamily>>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
ModuleBayTemplate : Base class to use for serializers based on OrganizationalModel or PrimaryModel. Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
Fields§
§id: Option<Uuid>§object_type: Option<String>§display: Option<String>Human friendly display value
url: Option<String>§natural_slug: Option<String>§notes_url: Option<String>§name: String§position: Option<String>The position of the module bay within the device or module
label: Option<String>Physical label
description: Option<String>§requires_first_party_modules: Option<bool>This bay will only accept modules from the same manufacturer as the parent device or module
device_type: Option<Option<Box<ApprovalWorkflowUser>>>§module_type: Option<Option<Box<ApprovalWorkflowUser>>>§module_family: Option<Option<Box<BulkWritableModuleBayTemplateRequestModuleFamily>>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl ModuleBayTemplate
impl ModuleBayTemplate
Sourcepub fn new(name: String) -> ModuleBayTemplate
pub fn new(name: String) -> ModuleBayTemplate
Base class to use for serializers based on OrganizationalModel or PrimaryModel. Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
Trait Implementations§
Source§impl Clone for ModuleBayTemplate
impl Clone for ModuleBayTemplate
Source§fn clone(&self) -> ModuleBayTemplate
fn clone(&self) -> ModuleBayTemplate
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 ModuleBayTemplate
impl Debug for ModuleBayTemplate
Source§impl Default for ModuleBayTemplate
impl Default for ModuleBayTemplate
Source§fn default() -> ModuleBayTemplate
fn default() -> ModuleBayTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModuleBayTemplate
impl<'de> Deserialize<'de> for ModuleBayTemplate
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 ModuleBayTemplate
impl PartialEq for ModuleBayTemplate
Source§impl Serialize for ModuleBayTemplate
impl Serialize for ModuleBayTemplate
impl StructuralPartialEq for ModuleBayTemplate
Auto Trait Implementations§
impl Freeze for ModuleBayTemplate
impl RefUnwindSafe for ModuleBayTemplate
impl Send for ModuleBayTemplate
impl Sync for ModuleBayTemplate
impl Unpin for ModuleBayTemplate
impl UnsafeUnpin for ModuleBayTemplate
impl UnwindSafe for ModuleBayTemplate
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