#[non_exhaustive]pub struct ItemApiPayloadDataAttributes {
pub created_at: Option<DateTime<Utc>>,
pub modified_at: Option<DateTime<Utc>>,
pub org_id: Option<i64>,
pub primary_column_name: Option<String>,
pub signature: Option<String>,
pub store_id: Option<String>,
pub value: Option<BTreeMap<String, Value>>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Metadata and content of a datastore item.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.created_at: Option<DateTime<Utc>>
Timestamp when the item was first created.
modified_at: Option<DateTime<Utc>>
Timestamp when the item was last modified.
org_id: Option<i64>
The ID of the organization that owns this item.
primary_column_name: Option<String>
The name of the primary key column for this datastore. Primary column names:
- Must abide by both PostgreSQL naming conventions
- Cannot exceed 63 characters
signature: Option<String>
A unique signature identifying this item version.
store_id: Option<String>
The unique identifier of the datastore containing this item.
value: Option<BTreeMap<String, Value>>
The data content (as key-value pairs) of a datastore item.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl ItemApiPayloadDataAttributes
impl ItemApiPayloadDataAttributes
pub fn new() -> ItemApiPayloadDataAttributes
pub fn created_at(self, value: DateTime<Utc>) -> Self
pub fn modified_at(self, value: DateTime<Utc>) -> Self
pub fn org_id(self, value: i64) -> Self
pub fn primary_column_name(self, value: String) -> Self
pub fn signature(self, value: String) -> Self
pub fn store_id(self, value: String) -> Self
pub fn value(self, value: BTreeMap<String, Value>) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for ItemApiPayloadDataAttributes
impl Clone for ItemApiPayloadDataAttributes
Source§fn clone(&self) -> ItemApiPayloadDataAttributes
fn clone(&self) -> ItemApiPayloadDataAttributes
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 ItemApiPayloadDataAttributes
impl Debug for ItemApiPayloadDataAttributes
Source§impl<'de> Deserialize<'de> for ItemApiPayloadDataAttributes
impl<'de> Deserialize<'de> for ItemApiPayloadDataAttributes
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 ItemApiPayloadDataAttributes
impl PartialEq for ItemApiPayloadDataAttributes
Source§fn eq(&self, other: &ItemApiPayloadDataAttributes) -> bool
fn eq(&self, other: &ItemApiPayloadDataAttributes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ItemApiPayloadDataAttributes
Auto Trait Implementations§
impl Freeze for ItemApiPayloadDataAttributes
impl RefUnwindSafe for ItemApiPayloadDataAttributes
impl Send for ItemApiPayloadDataAttributes
impl Sync for ItemApiPayloadDataAttributes
impl Unpin for ItemApiPayloadDataAttributes
impl UnwindSafe for ItemApiPayloadDataAttributes
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