pub struct SessionVariableMapping {
pub name: String,
pub source: SessionVariableSource,
}Expand description
One session variable declaration.
The source is flattened, so a mapping is one flat table in both JSON and TOML:
[[session_variables.variables]]
name = "app.tenant_id"
source = "jwt"
claim = "tenant_id"Flat is what lets [session_variables] be declared in fraiseql.toml against
this exact type, rather than through a CLI-side mirror struct — and a mirror
struct at a producer↔consumer seam is how declarations get silently dropped
(#806/#807/#758).
Fields§
§name: StringThe PostgreSQL setting name (e.g. "app.tenant_id").
source: SessionVariableSourceWhere the value comes from.
Trait Implementations§
Source§impl Clone for SessionVariableMapping
impl Clone for SessionVariableMapping
Source§impl Debug for SessionVariableMapping
impl Debug for SessionVariableMapping
Source§impl<'de> Deserialize<'de> for SessionVariableMapping
impl<'de> Deserialize<'de> for SessionVariableMapping
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
impl Eq for SessionVariableMapping
Source§impl PartialEq for SessionVariableMapping
impl PartialEq for SessionVariableMapping
Source§impl Serialize for SessionVariableMapping
impl Serialize for SessionVariableMapping
impl StructuralPartialEq for SessionVariableMapping
Auto Trait Implementations§
impl Freeze for SessionVariableMapping
impl RefUnwindSafe for SessionVariableMapping
impl Send for SessionVariableMapping
impl Sync for SessionVariableMapping
impl Unpin for SessionVariableMapping
impl UnsafeUnpin for SessionVariableMapping
impl UnwindSafe for SessionVariableMapping
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.