pub struct ManufacturerRequest {
pub name: String,
pub slug: String,
pub description: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
ManufacturerRequest : Adds support for custom fields and tags.
Fields§
§name: String§slug: String§description: 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
Adds support for custom fields and tags.
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 · 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§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 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