pub struct HandlerGraphqlTableConfig {
pub columns: Vec<String>,
pub row_filter: Vec<HandlerGraphqlRowTerm>,
pub resolvers: BTreeMap<String, String>,
}Expand description
One exposed table’s policy (see HandlerGraphqlDataConfig::tables).
Fields§
§columns: Vec<String>The readable columns (an allow-list). Deny-by-default: a column absent here is invisible.
row_filter: Vec<HandlerGraphqlRowTerm>Row-level filter terms, all applied to every access — the tenant-isolation seam.
resolvers: BTreeMap<String, String>Fields on this type resolved by a wasm function instead of a column: field → function name. The connector resolves the row’s columns from SQL, then batches one
invoke to the function (a local _entities fetch) to fill the field. This map is also
the allowlist — only these fields delegate, only to these functions.
Trait Implementations§
Source§impl Clone for HandlerGraphqlTableConfig
impl Clone for HandlerGraphqlTableConfig
Source§fn clone(&self) -> HandlerGraphqlTableConfig
fn clone(&self) -> HandlerGraphqlTableConfig
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 HandlerGraphqlTableConfig
impl Debug for HandlerGraphqlTableConfig
Source§impl Default for HandlerGraphqlTableConfig
impl Default for HandlerGraphqlTableConfig
Source§fn default() -> HandlerGraphqlTableConfig
fn default() -> HandlerGraphqlTableConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HandlerGraphqlTableConfigwhere
HandlerGraphqlTableConfig: Default,
impl<'de> Deserialize<'de> for HandlerGraphqlTableConfigwhere
HandlerGraphqlTableConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HandlerGraphqlTableConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HandlerGraphqlTableConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HandlerGraphqlTableConfig
Source§impl Serialize for HandlerGraphqlTableConfig
impl Serialize for HandlerGraphqlTableConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for HandlerGraphqlTableConfig
Auto Trait Implementations§
impl Freeze for HandlerGraphqlTableConfig
impl RefUnwindSafe for HandlerGraphqlTableConfig
impl Send for HandlerGraphqlTableConfig
impl Sync for HandlerGraphqlTableConfig
impl Unpin for HandlerGraphqlTableConfig
impl UnsafeUnpin for HandlerGraphqlTableConfig
impl UnwindSafe for HandlerGraphqlTableConfig
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.