#[non_exhaustive]pub struct AuthorizationQueryContext {
pub locator: Option<String>,
pub time: Option<DateTime<Utc>>,
pub extra: HashMap<String, String>,
}Expand description
Optional TRQP query context. time requests evaluation as of a given instant; locator is an authority-defined hint for locating records.
JSON schema
{
"title": "QueryContext",
"description": "Optional TRQP query context. `time` requests evaluation as of a given instant; `locator` is an authority-defined hint for locating records.",
"type": "object",
"properties": {
"locator": {
"description": "Optional hint for systems that need extra information to locate the records in question (authorization queries).",
"type": "string"
},
"time": {
"description": "Evaluate the query as of this RFC3339 (Z offset) instant. Blank/absent uses current server time.",
"type": "string",
"format": "date-time"
}
},
"additionalProperties": {
"type": "string"
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.locator: Option<String>Optional hint for systems that need extra information to locate the records in question (authorization queries).
time: Option<DateTime<Utc>>Evaluate the query as of this RFC3339 (Z offset) instant. Blank/absent uses current server time.
extra: HashMap<String, String>Implementations§
Source§impl QueryContext
impl QueryContext
pub fn builder() -> QueryContext
Trait Implementations§
Source§impl Clone for QueryContext
impl Clone for QueryContext
Source§fn clone(&self) -> QueryContext
fn clone(&self) -> QueryContext
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 QueryContext
impl Debug for QueryContext
Source§impl<'de> Deserialize<'de> for QueryContext
impl<'de> Deserialize<'de> for QueryContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<QueryContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<QueryContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for QueryContext
impl Serialize for QueryContext
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
Source§impl TryFrom<QueryContext> for QueryContext
impl TryFrom<QueryContext> for QueryContext
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: QueryContext) -> Result<QueryContext, ConversionError>
fn try_from(value: QueryContext) -> Result<QueryContext, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for QueryContext
impl RefUnwindSafe for QueryContext
impl Send for QueryContext
impl Sync for QueryContext
impl Unpin for QueryContext
impl UnsafeUnpin for QueryContext
impl UnwindSafe for QueryContext
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