pub struct EntityDefinition {
pub name: String,
pub pk_template: String,
pub sk_template: Option<String>,
pub type_attribute: Option<String>,
pub gsi_mappings: Vec<GsiMapping>,
pub description: Option<String>,
}Expand description
A single entity type within the data model.
Fields§
§name: StringEntity name, e.g. “Account”
pk_template: StringPrimary key partition template, e.g. “account#${id}”
sk_template: Option<String>Primary key sort template, e.g. “account#”
type_attribute: Option<String>Entity-level type attribute override (usually same as DataModel.type_attribute)
gsi_mappings: Vec<GsiMapping>Which GSIs this entity participates in, with key templates
description: Option<String>Human-readable description from schema (if present)
Trait Implementations§
Source§impl Clone for EntityDefinition
impl Clone for EntityDefinition
Source§fn clone(&self) -> EntityDefinition
fn clone(&self) -> EntityDefinition
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 EntityDefinition
impl Debug for EntityDefinition
Auto Trait Implementations§
impl Freeze for EntityDefinition
impl RefUnwindSafe for EntityDefinition
impl Send for EntityDefinition
impl Sync for EntityDefinition
impl Unpin for EntityDefinition
impl UnsafeUnpin for EntityDefinition
impl UnwindSafe for EntityDefinition
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