Struct authzen_opa::OPAQueryConfig
source · pub struct OPAQueryConfig<'a> {
pub data_path: &'a str,
pub query: &'a str,
pub explain: Option<&'a str>,
pub pretty: Option<bool>,
pub instrument: Option<bool>,
pub metrics: Option<bool>,
}Fields§
§data_path: &'a str§query: &'a str§explain: Option<&'a str>§pretty: Option<bool>§instrument: Option<bool>§metrics: Option<bool>Implementations§
source§impl<'a> OPAQueryConfig<'a>
impl<'a> OPAQueryConfig<'a>
sourcepub fn builder() -> OPAQueryConfigBuilder<'a, ((), (), (), (), (), ())>
pub fn builder() -> OPAQueryConfigBuilder<'a, ((), (), (), (), (), ())>
Create a builder for building OPAQueryConfig.
On the builder, call .data_path(...)(optional), .query(...)(optional), .explain(...)(optional), .pretty(...)(optional), .instrument(...)(optional), .metrics(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of OPAQueryConfig.
Trait Implementations§
source§impl<'a> Clone for OPAQueryConfig<'a>
impl<'a> Clone for OPAQueryConfig<'a>
source§fn clone(&self) -> OPAQueryConfig<'a>
fn clone(&self) -> OPAQueryConfig<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for OPAQueryConfig<'a>
impl<'a> Debug for OPAQueryConfig<'a>
source§impl Default for OPAQueryConfig<'_>
impl Default for OPAQueryConfig<'_>
source§impl<'de: 'a, 'a> Deserialize<'de> for OPAQueryConfig<'a>
impl<'de: 'a, 'a> Deserialize<'de> for OPAQueryConfig<'a>
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