pub struct KeepsakeRelationTarget {
pub fact: FactId,
pub subject: SubjectRef,
pub relation_id: RelationId,
pub subject_slot: Option<SubjectSlot>,
}Expand description
Resolved keepsake target for a gatekeep fact binding.
Fields§
§fact: FactIdGatekeep fact that maps to this keepsake relation target.
subject: SubjectRefKeepsake subject used for relation lookups and lifecycle writes.
relation_id: RelationIdKeepsake relation definition id.
subject_slot: Option<SubjectSlot>Request-scoped subject slot used by this target, when any.
Implementations§
Source§impl KeepsakeRelationTarget
impl KeepsakeRelationTarget
Sourcepub fn revoke_by_subject(
&self,
at: DateTime<Utc>,
context: CommandContext,
) -> RevokeBySubject
pub fn revoke_by_subject( &self, at: DateTime<Utc>, context: CommandContext, ) -> RevokeBySubject
Builds a keepsake revoke-by-subject command for this target.
Trait Implementations§
Source§impl Clone for KeepsakeRelationTarget
impl Clone for KeepsakeRelationTarget
Source§fn clone(&self) -> KeepsakeRelationTarget
fn clone(&self) -> KeepsakeRelationTarget
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 KeepsakeRelationTarget
impl Debug for KeepsakeRelationTarget
impl Eq for KeepsakeRelationTarget
Source§impl PartialEq for KeepsakeRelationTarget
impl PartialEq for KeepsakeRelationTarget
impl StructuralPartialEq for KeepsakeRelationTarget
Auto Trait Implementations§
impl Freeze for KeepsakeRelationTarget
impl RefUnwindSafe for KeepsakeRelationTarget
impl Send for KeepsakeRelationTarget
impl Sync for KeepsakeRelationTarget
impl Unpin for KeepsakeRelationTarget
impl UnsafeUnpin for KeepsakeRelationTarget
impl UnwindSafe for KeepsakeRelationTarget
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