pub struct ScopeDescriptor {
pub tenant_id: TenantId,
pub definition: ScopeDefinitionId,
pub partitions: BTreeSet<DatasetPartitionId>,
pub policy_version: u32,
pub projection: ProjectionVersion,
}Expand description
Canonical server-owned dataset descriptor; it contains no raw SQL or executable predicate.
Fields§
§tenant_id: TenantId§definition: ScopeDefinitionId§partitions: BTreeSet<DatasetPartitionId>§policy_version: u32§projection: ProjectionVersionImplementations§
Source§impl ScopeDescriptor
impl ScopeDescriptor
Sourcepub fn validate_for(&self, principal: ScopePrincipal) -> Result<(), ScopeError>
pub fn validate_for(&self, principal: ScopePrincipal) -> Result<(), ScopeError>
Validates canonical identity and bounds.
§Errors
Returns a typed error for tenant mismatch, zero policy, or malformed partitions.
Trait Implementations§
Source§impl Clone for ScopeDescriptor
impl Clone for ScopeDescriptor
Source§fn clone(&self) -> ScopeDescriptor
fn clone(&self) -> ScopeDescriptor
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 ScopeDescriptor
impl Debug for ScopeDescriptor
Source§impl<'de> Deserialize<'de> for ScopeDescriptor
impl<'de> Deserialize<'de> for ScopeDescriptor
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 ScopeDescriptor
Source§impl PartialEq for ScopeDescriptor
impl PartialEq for ScopeDescriptor
Source§impl Serialize for ScopeDescriptor
impl Serialize for ScopeDescriptor
impl StructuralPartialEq for ScopeDescriptor
Auto Trait Implementations§
impl Freeze for ScopeDescriptor
impl RefUnwindSafe for ScopeDescriptor
impl Send for ScopeDescriptor
impl Sync for ScopeDescriptor
impl Unpin for ScopeDescriptor
impl UnsafeUnpin for ScopeDescriptor
impl UnwindSafe for ScopeDescriptor
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