#[non_exhaustive]pub struct ImpactOptions<'a> {
pub source: ImpactSource,
pub tuples: Option<&'a dyn TupleIndex>,
pub env: &'a Attributes,
pub limits: QueryLimits,
pub now: Option<u64>,
}Expand description
What the impact of a change is computed over.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: ImpactSource§tuples: Option<&'a dyn TupleIndex>The tuples the questions run against; also lists the objects of a relation grant.
env: &'a Attributes§limits: QueryLimits§now: Option<u64>The instant the questions are answered at, as in Context::at.
Implementations§
Source§impl<'a> ImpactOptions<'a>
impl<'a> ImpactOptions<'a>
pub fn new(source: ImpactSource) -> Self
pub fn with_tuples(self, tuples: &'a dyn TupleIndex) -> Self
pub fn with_env(self, env: &'a Attributes) -> Self
pub fn with_limits(self, limits: QueryLimits) -> Self
pub fn at(self, now: u64) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ImpactOptions<'a>
impl<'a> !Send for ImpactOptions<'a>
impl<'a> !Sync for ImpactOptions<'a>
impl<'a> !UnwindSafe for ImpactOptions<'a>
impl<'a> Forget for ImpactOptions<'a>
impl<'a> Freeze for ImpactOptions<'a>where
*const u8 is !null: Freeze,
PhantomData<Subject>: Freeze,
PhantomData<Resource>: Freeze,
PhantomData<String>: Freeze,
&'a dyn TupleIndex: Freeze,
&'a BTreeMap<String, Value>: Freeze,
impl<'a> Move for ImpactOptions<'a>
impl<'a> Unpin for ImpactOptions<'a>
impl<'a> UnsafeUnpin for ImpactOptions<'a>where
*const u8 is !null: UnsafeUnpin,
PhantomData<Subject>: UnsafeUnpin,
PhantomData<Resource>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
&'a dyn TupleIndex: UnsafeUnpin,
&'a BTreeMap<String, Value>: UnsafeUnpin,
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