pub struct PatchedWritableCustomFieldChoiceSetRequest {
pub name: Option<String>,
pub description: Option<String>,
pub base_choices: Option<Option<BaseChoices>>,
pub extra_choices: Option<Vec<Vec<Value>>>,
pub choice_colors: Option<ChoiceColors>,
pub order_alphabetically: Option<bool>,
pub owner: Option<Option<Box<AsnRangeRequestOwner>>>,
}Expand description
PatchedWritableCustomFieldChoiceSetRequest : Adds an owner field for models which have a ForeignKey to users.Owner.
Fields§
§name: Option<String>§description: Option<String>§base_choices: Option<Option<BaseChoices>>Base set of predefined choices (optional) * IATA - IATA (Airport codes) * ISO_3166 - ISO 3166 (Country codes) * UN_LOCODE - UN/LOCODE (Location codes)
extra_choices: Option<Vec<Vec<Value>>>§choice_colors: Option<ChoiceColors>§order_alphabetically: Option<bool>Choices are automatically ordered alphabetically
owner: Option<Option<Box<AsnRangeRequestOwner>>>Implementations§
Source§impl PatchedWritableCustomFieldChoiceSetRequest
impl PatchedWritableCustomFieldChoiceSetRequest
Sourcepub fn new() -> PatchedWritableCustomFieldChoiceSetRequest
pub fn new() -> PatchedWritableCustomFieldChoiceSetRequest
Adds an owner field for models which have a ForeignKey to users.Owner.
Trait Implementations§
Source§impl Clone for PatchedWritableCustomFieldChoiceSetRequest
impl Clone for PatchedWritableCustomFieldChoiceSetRequest
Source§fn clone(&self) -> PatchedWritableCustomFieldChoiceSetRequest
fn clone(&self) -> PatchedWritableCustomFieldChoiceSetRequest
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 Default for PatchedWritableCustomFieldChoiceSetRequest
impl Default for PatchedWritableCustomFieldChoiceSetRequest
Source§fn default() -> PatchedWritableCustomFieldChoiceSetRequest
fn default() -> PatchedWritableCustomFieldChoiceSetRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedWritableCustomFieldChoiceSetRequest
impl<'de> Deserialize<'de> for PatchedWritableCustomFieldChoiceSetRequest
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 PatchedWritableCustomFieldChoiceSetRequest
impl PartialEq for PatchedWritableCustomFieldChoiceSetRequest
Source§fn eq(&self, other: &PatchedWritableCustomFieldChoiceSetRequest) -> bool
fn eq(&self, other: &PatchedWritableCustomFieldChoiceSetRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchedWritableCustomFieldChoiceSetRequest
Auto Trait Implementations§
impl Freeze for PatchedWritableCustomFieldChoiceSetRequest
impl RefUnwindSafe for PatchedWritableCustomFieldChoiceSetRequest
impl Send for PatchedWritableCustomFieldChoiceSetRequest
impl Sync for PatchedWritableCustomFieldChoiceSetRequest
impl Unpin for PatchedWritableCustomFieldChoiceSetRequest
impl UnsafeUnpin for PatchedWritableCustomFieldChoiceSetRequest
impl UnwindSafe for PatchedWritableCustomFieldChoiceSetRequest
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