pub struct RLSRule {
pub name: String,
pub expression: String,
pub cacheable: bool,
pub cache_ttl_seconds: Option<u64>,
}Expand description
A single RLS rule for a type
Fields§
§name: StringRule name (for debugging)
expression: StringExpression to evaluate (e.g., “user.id == object.author_id”)
cacheable: boolWhether this rule result can be cached
cache_ttl_seconds: Option<u64>Cache TTL in seconds (if cacheable)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RLSRule
impl<'de> Deserialize<'de> for RLSRule
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
Auto Trait Implementations§
impl Freeze for RLSRule
impl RefUnwindSafe for RLSRule
impl Send for RLSRule
impl Sync for RLSRule
impl Unpin for RLSRule
impl UnsafeUnpin for RLSRule
impl UnwindSafe for RLSRule
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