pub struct HandlerGraphqlDataConfig {
pub enabled: bool,
pub source: String,
pub tables: BTreeMap<String, HandlerGraphqlTableConfig>,
pub mutations: bool,
pub claims_from_token: Option<HandlerGraphqlTokenClaims>,
}Expand description
The declarative GraphQL data connector’s configuration (see
HandlerGraphqlConfig::data). A database-derived API is deny-by-default: only the
tables (and their columns) named here are exposed.
Fields§
§enabled: boolMaster switch. false (the default) ⇒ the connector is inert even if present.
source: StringThe managed SQL database name to expose (the site’s default database if unset).
tables: BTreeMap<String, HandlerGraphqlTableConfig>The exposed tables, keyed by table name. Deny-by-default: a table absent here is neither in the generated schema nor queryable.
mutations: boolAllow mutations (insert/update/delete). Off by default — the connector is read-only unless a site opts in.
claims_from_token: Option<HandlerGraphqlTokenClaims>Bind row_filter claims from a verified application bearer token (the app’s own
IdP), not only the host-asserted project. This unlocks multi-tenant-within-one-project
isolation: the app’s tokens carry a tenant claim (e.g. tid) a row_filter scopes rows
by. A claim value is used only from a fully verified token; a missing/invalid token
leaves the claim absent, so a filter referencing it denies (never widens). Absent ⇒ only
the host project claim is available.
Trait Implementations§
Source§impl Clone for HandlerGraphqlDataConfig
impl Clone for HandlerGraphqlDataConfig
Source§fn clone(&self) -> HandlerGraphqlDataConfig
fn clone(&self) -> HandlerGraphqlDataConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HandlerGraphqlDataConfig
impl Debug for HandlerGraphqlDataConfig
Source§impl Default for HandlerGraphqlDataConfig
impl Default for HandlerGraphqlDataConfig
Source§fn default() -> HandlerGraphqlDataConfig
fn default() -> HandlerGraphqlDataConfig
Source§impl<'de> Deserialize<'de> for HandlerGraphqlDataConfigwhere
HandlerGraphqlDataConfig: Default,
impl<'de> Deserialize<'de> for HandlerGraphqlDataConfigwhere
HandlerGraphqlDataConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HandlerGraphqlDataConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HandlerGraphqlDataConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for HandlerGraphqlDataConfig
Source§impl PartialEq for HandlerGraphqlDataConfig
impl PartialEq for HandlerGraphqlDataConfig
Source§impl Serialize for HandlerGraphqlDataConfig
impl Serialize for HandlerGraphqlDataConfig
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,
impl StructuralPartialEq for HandlerGraphqlDataConfig
Auto Trait Implementations§
impl Freeze for HandlerGraphqlDataConfig
impl RefUnwindSafe for HandlerGraphqlDataConfig
impl Send for HandlerGraphqlDataConfig
impl Sync for HandlerGraphqlDataConfig
impl Unpin for HandlerGraphqlDataConfig
impl UnsafeUnpin for HandlerGraphqlDataConfig
impl UnwindSafe for HandlerGraphqlDataConfig
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
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
key and return true if they are equal.