#[non_exhaustive]pub struct DatastoreDataAttributes {
pub created_at: Option<DateTime<Utc>>,
pub creator_user_id: Option<i64>,
pub creator_user_uuid: Option<String>,
pub description: Option<String>,
pub modified_at: Option<DateTime<Utc>>,
pub name: Option<String>,
pub org_id: Option<i64>,
pub primary_column_name: Option<String>,
pub primary_key_generation_strategy: Option<DatastorePrimaryKeyGenerationStrategy>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Detailed information about a datastore.
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 datastore was created.
creator_user_id: Option<i64>
The numeric ID of the user who created the datastore.
creator_user_uuid: Option<String>
The UUID of the user who created the datastore.
description: Option<String>
A human-readable description about the datastore.
modified_at: Option<DateTime<Utc>>
Timestamp when the datastore was last modified.
name: Option<String>
The display name of the datastore.
org_id: Option<i64>
The ID of the organization that owns this datastore.
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
primary_key_generation_strategy: Option<DatastorePrimaryKeyGenerationStrategy>
Can be set to uuid
to automatically generate primary keys when new items are added. Default value is none
, which requires you to supply a primary key for each new item.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl DatastoreDataAttributes
impl DatastoreDataAttributes
pub fn new() -> DatastoreDataAttributes
pub fn created_at(self, value: DateTime<Utc>) -> Self
pub fn creator_user_id(self, value: i64) -> Self
pub fn creator_user_uuid(self, value: String) -> Self
pub fn description(self, value: String) -> Self
pub fn modified_at(self, value: DateTime<Utc>) -> Self
pub fn name(self, value: String) -> Self
pub fn org_id(self, value: i64) -> Self
pub fn primary_column_name(self, value: String) -> Self
pub fn primary_key_generation_strategy( self, value: DatastorePrimaryKeyGenerationStrategy, ) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for DatastoreDataAttributes
impl Clone for DatastoreDataAttributes
Source§fn clone(&self) -> DatastoreDataAttributes
fn clone(&self) -> DatastoreDataAttributes
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 DatastoreDataAttributes
impl Debug for DatastoreDataAttributes
Source§impl Default for DatastoreDataAttributes
impl Default for DatastoreDataAttributes
Source§impl<'de> Deserialize<'de> for DatastoreDataAttributes
impl<'de> Deserialize<'de> for DatastoreDataAttributes
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 DatastoreDataAttributes
impl PartialEq for DatastoreDataAttributes
Source§impl Serialize for DatastoreDataAttributes
impl Serialize for DatastoreDataAttributes
impl StructuralPartialEq for DatastoreDataAttributes
Auto Trait Implementations§
impl Freeze for DatastoreDataAttributes
impl RefUnwindSafe for DatastoreDataAttributes
impl Send for DatastoreDataAttributes
impl Sync for DatastoreDataAttributes
impl Unpin for DatastoreDataAttributes
impl UnwindSafe for DatastoreDataAttributes
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