pub struct ResolvedProjectTenancy {
pub require_tenancy_declaration: bool,
pub allow_cross_tenant_db: bool,
pub capability_max_ttl_secs: Option<u64>,
}Expand description
The resolved per-project tenancy/capability knobs (base posture ⊕ an optional project override),
consulted at each in-project enforcement point (tenancy declaration, cross-tenant all, guest
capability minting). Cheap Copy so it can be looked up per request.
Fields§
§require_tenancy_declaration: boolWhether a sql/orm importer in this project must declare an explicit tenancy decision.
allow_cross_tenant_db: boolWhether an all in-site grant may reach across sub-tenants within this project’s database.
capability_max_ttl_secs: Option<u64>Some(ttl) ⇒ guest capability minting is enabled for this project, clamped to ttl seconds;
None ⇒ minting disabled (a guest mint is access-denied).
Trait Implementations§
Source§impl Clone for ResolvedProjectTenancy
impl Clone for ResolvedProjectTenancy
Source§fn clone(&self) -> ResolvedProjectTenancy
fn clone(&self) -> ResolvedProjectTenancy
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 moreimpl Copy for ResolvedProjectTenancy
Source§impl Debug for ResolvedProjectTenancy
impl Debug for ResolvedProjectTenancy
impl Eq for ResolvedProjectTenancy
Source§impl PartialEq for ResolvedProjectTenancy
impl PartialEq for ResolvedProjectTenancy
impl StructuralPartialEq for ResolvedProjectTenancy
Auto Trait Implementations§
impl Freeze for ResolvedProjectTenancy
impl RefUnwindSafe for ResolvedProjectTenancy
impl Send for ResolvedProjectTenancy
impl Sync for ResolvedProjectTenancy
impl Unpin for ResolvedProjectTenancy
impl UnsafeUnpin for ResolvedProjectTenancy
impl UnwindSafe for ResolvedProjectTenancy
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,
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.