akkaratanapatT
06/07/2023, 8:32 PMexpr: request.resource.attr.share_read_list.exists(t, t.id == request.principal.id)
and I would like to implement it and add a list of string in resouce attr in Rust,
but it said AttrVal wasn't implemented for list, vec, or iter
May you give me some example of thisDennis (Cerbos)
ListVal(["Alex"])
.
It supports any type that implements IntoIterator
#[derive(Debug, Clone)]
pub struct ListVal<V, I>(pub I)
where
V: AttrVal,
I: IntoIterator<Item = V>;
akkaratanapatT
06/08/2023, 3:44 AM