pub struct SemanticQueryClause {
pub decision: DecisionDefinition,
pub mode: SemanticQueryMode,
pub filter: Option<SemanticQueryFilter>,
pub order_by: Option<SemanticQueryOrder>,
pub fields: Option<Vec<String>>,
pub schema_version: Option<String>,
pub authorization: Option<DecisionTransportAuthorization>,
}Expand description
The semantic clause of a bounded authority query.
Unknown keys are refused rather than ignored: a clause a runtime does not understand must fail the request, never execute the deterministic part and return it as though the clause had been honored.
Fields§
§decision: DecisionDefinition§mode: SemanticQueryMode§filter: Option<SemanticQueryFilter>§order_by: Option<SemanticQueryOrder>§fields: Option<Vec<String>>Explicit field selection, narrowed further by authorization.
schema_version: Option<String>Field-level authorization narrowing, in the same shape the semantic-decision transport accepts. The principal is bound by the authority to the authenticated principal before evaluation.
Trait Implementations§
Source§impl Clone for SemanticQueryClause
impl Clone for SemanticQueryClause
Source§impl Debug for SemanticQueryClause
impl Debug for SemanticQueryClause
Source§impl<'de> Deserialize<'de> for SemanticQueryClause
impl<'de> Deserialize<'de> for SemanticQueryClause
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 SemanticQueryClause
Source§impl PartialEq for SemanticQueryClause
impl PartialEq for SemanticQueryClause
Source§impl Serialize for SemanticQueryClause
impl Serialize for SemanticQueryClause
impl StructuralPartialEq for SemanticQueryClause
Auto Trait Implementations§
impl Freeze for SemanticQueryClause
impl RefUnwindSafe for SemanticQueryClause
impl Send for SemanticQueryClause
impl Sync for SemanticQueryClause
impl Unpin for SemanticQueryClause
impl UnsafeUnpin for SemanticQueryClause
impl UnwindSafe for SemanticQueryClause
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