pub struct ObjectType {Show 13 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display: Option<String>,
pub app_label: String,
pub app_name: Option<String>,
pub model: String,
pub model_name: Option<String>,
pub model_name_plural: Option<String>,
pub public: Option<bool>,
pub features: Option<Vec<String>>,
pub is_plugin_model: Option<bool>,
pub rest_api_endpoint: Option<String>,
pub description: Option<String>,
}Fields§
§id: Option<i32>§url: Option<String>§display: Option<String>§app_label: String§app_name: Option<String>§model: String§model_name: Option<String>§model_name_plural: Option<String>§public: Option<bool>§features: Option<Vec<String>>§is_plugin_model: Option<bool>§rest_api_endpoint: Option<String>§description: Option<String>Implementations§
Source§impl ObjectType
impl ObjectType
pub fn new(app_label: String, model: String) -> ObjectType
Trait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
Source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
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 ObjectType
impl Debug for ObjectType
Source§impl Default for ObjectType
impl Default for ObjectType
Source§fn default() -> ObjectType
fn default() -> ObjectType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ObjectType
impl<'de> Deserialize<'de> for ObjectType
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 ObjectType
impl PartialEq for ObjectType
Source§impl Serialize for ObjectType
impl Serialize for ObjectType
impl StructuralPartialEq for ObjectType
Auto Trait Implementations§
impl Freeze for ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnwindSafe for ObjectType
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