pub struct ActivePolicy {
pub generation: u64,
pub policy: DataAccessPolicy,
pub mode: AuthorizationMode,
pub fingerprint: u64,
pub min_count: u64,
}Expand description
A policy together with the commit that published it.
Fields§
§generation: u64Applying commit index: monotonic, but not necessarily consecutive.
policy: DataAccessPolicyThe active policy payload.
mode: AuthorizationModeEnforcement strength for this policy.
fingerprint: u64Stable digest of the policy payload and mode.
min_count: u64Smallest group a catalog read may report under this policy (POL-2 small-count suppression): labels, properties, values, relationship shapes and join candidates counted over fewer records are withheld, as are sample and min/max values. 0 (the default) withholds nothing.
Trait Implementations§
Source§impl Clone for ActivePolicy
impl Clone for ActivePolicy
Source§fn clone(&self) -> ActivePolicy
fn clone(&self) -> ActivePolicy
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 ActivePolicy
impl Debug for ActivePolicy
Source§impl<'de> Deserialize<'de> for ActivePolicy
impl<'de> Deserialize<'de> for ActivePolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActivePolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActivePolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ActivePolicy
Source§impl PartialEq for ActivePolicy
impl PartialEq for ActivePolicy
Source§impl Serialize for ActivePolicy
impl Serialize for ActivePolicy
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
impl StructuralPartialEq for ActivePolicy
Auto Trait Implementations§
impl Freeze for ActivePolicy
impl RefUnwindSafe for ActivePolicy
impl Send for ActivePolicy
impl Sync for ActivePolicy
impl Unpin for ActivePolicy
impl UnsafeUnpin for ActivePolicy
impl UnwindSafe for ActivePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.