pub struct LocationType {Show 15 fields
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: Option<String>,
pub tree_depth: Option<Option<i32>>,
pub content_types: Option<Vec<String>>,
pub name: String,
pub description: Option<String>,
pub nestable: Option<bool>,
pub parent: Option<Option<Box<ApprovalWorkflowUser>>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub notes_url: Option<String>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
LocationType : Add a tree_depth field to non-nested model serializers based on django-tree-queries.
Fields§
§id: Option<Uuid>§object_type: Option<String>§display: Option<String>Human friendly display value
url: Option<String>§natural_slug: Option<String>§tree_depth: Option<Option<i32>>§content_types: Option<Vec<String>>§name: String§description: Option<String>§nestable: Option<bool>Allow Locations of this type to be parents/children of other Locations of this same type
parent: Option<Option<Box<ApprovalWorkflowUser>>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§notes_url: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl LocationType
impl LocationType
Sourcepub fn new(name: String) -> LocationType
pub fn new(name: String) -> LocationType
Add a tree_depth field to non-nested model serializers based on django-tree-queries.
Trait Implementations§
Source§impl Clone for LocationType
impl Clone for LocationType
Source§fn clone(&self) -> LocationType
fn clone(&self) -> LocationType
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 LocationType
impl Debug for LocationType
Source§impl Default for LocationType
impl Default for LocationType
Source§fn default() -> LocationType
fn default() -> LocationType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocationType
impl<'de> Deserialize<'de> for LocationType
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 LocationType
impl PartialEq for LocationType
Source§impl Serialize for LocationType
impl Serialize for LocationType
impl StructuralPartialEq for LocationType
Auto Trait Implementations§
impl Freeze for LocationType
impl RefUnwindSafe for LocationType
impl Send for LocationType
impl Sync for LocationType
impl Unpin for LocationType
impl UnsafeUnpin for LocationType
impl UnwindSafe for LocationType
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