pub struct GuardedMutationRequest {
pub mutation: MutationRequest,
pub guard: Expr,
}Expand description
A mutation whose target must also satisfy a trusted, datastore-enforced guard.
The guard is deliberately kept outside MutationRequest: ordinary domain
mutations do not own authorization policy, while boundary adapters such as a
federated endpoint must be able to require one atomic mutation predicate.
Fields§
§mutation: MutationRequest§guard: ExprImplementations§
Source§impl GuardedMutationRequest
impl GuardedMutationRequest
pub fn new(mutation: MutationRequest, guard: Expr) -> Self
Trait Implementations§
Source§impl Clone for GuardedMutationRequest
impl Clone for GuardedMutationRequest
Source§fn clone(&self) -> GuardedMutationRequest
fn clone(&self) -> GuardedMutationRequest
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 moreAuto Trait Implementations§
impl Freeze for GuardedMutationRequest
impl RefUnwindSafe for GuardedMutationRequest
impl Send for GuardedMutationRequest
impl Sync for GuardedMutationRequest
impl Unpin for GuardedMutationRequest
impl UnsafeUnpin for GuardedMutationRequest
impl UnwindSafe for GuardedMutationRequest
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