pub struct FieldPromotionPolicyV1 {
pub format_version: u16,
pub collection_index_ref: CollectionIndexRef,
pub mapping_generation: SchemaGeneration,
pub policy_generation: PolicyGeneration,
pub enabled: bool,
pub minimum_query_count: u32,
pub maximum_promoted_fields: u16,
pub maximum_cardinality: u64,
pub maximum_extra_bytes: u64,
pub allow_sensitive: bool,
}Expand description
Policy limits for physical field promotion. Logical mapping semantics remain authoritative.
Fields§
§format_version: u16§collection_index_ref: CollectionIndexRef§mapping_generation: SchemaGeneration§policy_generation: PolicyGeneration§enabled: bool§minimum_query_count: u32§maximum_promoted_fields: u16§maximum_cardinality: u64§maximum_extra_bytes: u64§allow_sensitive: boolImplementations§
Source§impl FieldPromotionPolicyV1
impl FieldPromotionPolicyV1
pub fn validate(self) -> Result<(), DerivedContractError>
Sourcepub fn admits(
self,
heat: &FieldHeatAggregateV1,
currently_promoted_fields: u16,
currently_promoted_extra_bytes: u64,
) -> Result<bool, DerivedContractError>
pub fn admits( self, heat: &FieldHeatAggregateV1, currently_promoted_fields: u16, currently_promoted_extra_bytes: u64, ) -> Result<bool, DerivedContractError>
Returns a physical-only decision; denial never changes logical mapping behavior.
Trait Implementations§
Source§impl Clone for FieldPromotionPolicyV1
impl Clone for FieldPromotionPolicyV1
impl Copy for FieldPromotionPolicyV1
Source§impl Debug for FieldPromotionPolicyV1
impl Debug for FieldPromotionPolicyV1
Source§impl<'de> Deserialize<'de> for FieldPromotionPolicyV1
impl<'de> Deserialize<'de> for FieldPromotionPolicyV1
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
impl Eq for FieldPromotionPolicyV1
Source§impl PartialEq for FieldPromotionPolicyV1
impl PartialEq for FieldPromotionPolicyV1
Source§impl Serialize for FieldPromotionPolicyV1
impl Serialize for FieldPromotionPolicyV1
impl StructuralPartialEq for FieldPromotionPolicyV1
Auto Trait Implementations§
impl Freeze for FieldPromotionPolicyV1
impl RefUnwindSafe for FieldPromotionPolicyV1
impl Send for FieldPromotionPolicyV1
impl Sync for FieldPromotionPolicyV1
impl Unpin for FieldPromotionPolicyV1
impl UnsafeUnpin for FieldPromotionPolicyV1
impl UnwindSafe for FieldPromotionPolicyV1
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