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