pub struct CustomObject {
pub id: Uuid,
pub type_id: Uuid,
pub type_handle: String,
pub handle: Option<String>,
pub owner_type: Option<String>,
pub owner_id: Option<String>,
pub values: Value,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub version: i32,
}Expand description
Custom object record (instance of a type definition).
Fields§
§id: Uuid§type_id: Uuid§type_handle: String§handle: Option<String>Optional stable handle (unique within type) for human-friendly addressing.
owner_type: Option<String>Optional owner link. When set, both owner_type and owner_id must be set.
owner_id: Option<String>§values: ValueRecord values (JSON object).
created_at: DateTime<Utc>§updated_at: DateTime<Utc>§version: i32Version for optimistic locking.
Trait Implementations§
Source§impl Clone for CustomObject
impl Clone for CustomObject
Source§fn clone(&self) -> CustomObject
fn clone(&self) -> CustomObject
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 Debug for CustomObject
impl Debug for CustomObject
Source§impl<'de> Deserialize<'de> for CustomObject
impl<'de> Deserialize<'de> for CustomObject
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomObject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomObject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CustomObject
Source§impl PartialEq for CustomObject
impl PartialEq for CustomObject
Source§impl Serialize for CustomObject
impl Serialize for CustomObject
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CustomObject
Auto Trait Implementations§
impl Freeze for CustomObject
impl RefUnwindSafe for CustomObject
impl Send for CustomObject
impl Sync for CustomObject
impl Unpin for CustomObject
impl UnsafeUnpin for CustomObject
impl UnwindSafe for CustomObject
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