pub struct GenericObject {
pub object_type: String,
pub object_id: i32,
pub object: Option<Option<Value>>,
}Expand description
GenericObject : Minimal representation of some generic object identified by ContentType and PK.
Fields§
§object_type: String§object_id: i32§object: Option<Option<Value>>Implementations§
Source§impl GenericObject
impl GenericObject
Sourcepub fn new(object_type: String, object_id: i32) -> GenericObject
pub fn new(object_type: String, object_id: i32) -> GenericObject
Minimal representation of some generic object identified by ContentType and PK.
Trait Implementations§
Source§impl Clone for GenericObject
impl Clone for GenericObject
Source§fn clone(&self) -> GenericObject
fn clone(&self) -> GenericObject
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 GenericObject
impl Debug for GenericObject
Source§impl Default for GenericObject
impl Default for GenericObject
Source§fn default() -> GenericObject
fn default() -> GenericObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenericObject
impl<'de> Deserialize<'de> for GenericObject
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 GenericObject
impl PartialEq for GenericObject
Source§impl Serialize for GenericObject
impl Serialize for GenericObject
impl StructuralPartialEq for GenericObject
Auto Trait Implementations§
impl Freeze for GenericObject
impl RefUnwindSafe for GenericObject
impl Send for GenericObject
impl Sync for GenericObject
impl Unpin for GenericObject
impl UnwindSafe for GenericObject
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