pub struct EntityConfig {
pub name: String,
pub canister_id: String,
pub fetch_method: String,
pub fetch_many_method: Option<String>,
pub relationships: Vec<RelationshipConfig>,
pub auto_include: bool,
}Expand description
Entity configuration
Fields§
§name: StringEntity type name (e.g., “User”, “Order”)
canister_id: StringCanister ID where this entity’s data lives
fetch_method: StringMethod name to call to fetch a single entity (e.g., “get_user”)
fetch_many_method: Option<String>Method name to call to fetch multiple entities (e.g., “get_users”)
relationships: Vec<RelationshipConfig>Relationships to other entities
auto_include: boolWhether to include this entity in automatic context building
Trait Implementations§
Source§impl Clone for EntityConfig
impl Clone for EntityConfig
Source§fn clone(&self) -> EntityConfig
fn clone(&self) -> EntityConfig
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 EntityConfig
impl Debug for EntityConfig
Source§impl<'de> Deserialize<'de> for EntityConfig
impl<'de> Deserialize<'de> for EntityConfig
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
Auto Trait Implementations§
impl Freeze for EntityConfig
impl RefUnwindSafe for EntityConfig
impl Send for EntityConfig
impl Sync for EntityConfig
impl Unpin for EntityConfig
impl UnwindSafe for EntityConfig
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