pub struct ApiEntityConfig {
pub entity_id: String,
pub path_segment: String,
pub operations: Vec<String>,
pub sensitive_columns: Vec<String>,
pub validation: HashMap<String, ValidationRule>,
pub archive_field: Option<String>,
pub events: Vec<EntityEventTrigger>,
pub parent_ref_column: Option<String>,
pub mcp: Option<McpEntityConfig>,
}Fields§
§entity_id: String§path_segment: String§operations: Vec<String>§sensitive_columns: Vec<String>Column names that must never be exposed in API responses (e.g. password hashes, secrets).
validation: HashMap<String, ValidationRule>§archive_field: Option<String>Column whose null→non-null transition signals an archive. Required for on:“archive” triggers.
events: Vec<EntityEventTrigger>Decision-hub event triggers for this entity.
parent_ref_column: Option<String>Column holding the human-readable natural key used to resolve parentRef during bulk
create (e.g. "location_id" for locations, "product_id" for products). When set, bulk
create accepts a virtual parentRef field; the SDK resolves it to a UUID and writes
parent_id in a second pass after all rows are inserted.
mcp: Option<McpEntityConfig>MCP tool exposure config. Only effective when the mcp feature is enabled.
Trait Implementations§
Source§impl Clone for ApiEntityConfig
impl Clone for ApiEntityConfig
Source§fn clone(&self) -> ApiEntityConfig
fn clone(&self) -> ApiEntityConfig
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 ApiEntityConfig
impl Debug for ApiEntityConfig
Source§impl<'de> Deserialize<'de> for ApiEntityConfig
impl<'de> Deserialize<'de> for ApiEntityConfig
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 ApiEntityConfig
impl RefUnwindSafe for ApiEntityConfig
impl Send for ApiEntityConfig
impl Sync for ApiEntityConfig
impl Unpin for ApiEntityConfig
impl UnsafeUnpin for ApiEntityConfig
impl UnwindSafe for ApiEntityConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more