Enum authzen_opa::OPAQueryInputAction
source · pub enum OPAQueryInputAction<'a, Data = Value> {
Create {
service: Cow<'a, str>,
entity: Cow<'a, str>,
records: Vec<Data>,
},
Delete {
service: Cow<'a, str>,
entity: Cow<'a, str>,
ids: Vec<Uuid>,
},
Read {
service: Cow<'a, str>,
entity: Cow<'a, str>,
ids: Vec<Uuid>,
},
Update {
service: Cow<'a, str>,
entity: Cow<'a, str>,
patches: Vec<Data>,
},
}Variants§
Implementations§
source§impl<'a, Data> OPAQueryInputAction<'a, Data>
impl<'a, Data> OPAQueryInputAction<'a, Data>
pub fn map_data<T, F>(self, f: F) -> OPAQueryInputAction<'a, T>where F: FnMut(Data) -> T,
Trait Implementations§
source§impl<'a, Data: Clone> Clone for OPAQueryInputAction<'a, Data>
impl<'a, Data: Clone> Clone for OPAQueryInputAction<'a, Data>
source§fn clone(&self) -> OPAQueryInputAction<'a, Data>
fn clone(&self) -> OPAQueryInputAction<'a, Data>
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, Data: Debug> Debug for OPAQueryInputAction<'a, Data>
impl<'a, Data: Debug> Debug for OPAQueryInputAction<'a, Data>
source§impl<'de, 'a, Data> Deserialize<'de> for OPAQueryInputAction<'a, Data>where
Data: Deserialize<'de>,
impl<'de, 'a, Data> Deserialize<'de> for OPAQueryInputAction<'a, Data>where Data: Deserialize<'de>,
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