pub struct Scope<'a> {
pub workspace: &'a str,
pub kind: &'a str,
pub id: &'a str,
}Expand description
The record a founding and its steps are derived for: the record id of kind in the
workspace workspace. A record is always one workspace’s, so two workspaces holding a record
of the same kind and id still derive changes of their own, and the holders within one derive
the same.
Fields§
§workspace: &'a str§kind: &'a str§id: &'a strImplementations§
Source§impl Scope<'_>
impl Scope<'_>
Sourcepub fn founding_actor(self) -> ActorId
pub fn founding_actor(self) -> ActorId
The actor the record’s founding is made under (structure). It is salted apart from
the actor of the record’s identity genesis, which is derived from the same id, kind and
workspace: two different changes under one actor and sequence number would not merge.
Trait Implementations§
impl<'a> Copy for Scope<'a>
impl<'a> Eq for Scope<'a>
impl<'a> StructuralPartialEq for Scope<'a>
Auto Trait Implementations§
impl<'a> Forget for Scope<'a>
impl<'a> Freeze for Scope<'a>
impl<'a> Move for Scope<'a>
impl<'a> RefUnwindSafe for Scope<'a>
impl<'a> Send for Scope<'a>
impl<'a> Sync for Scope<'a>
impl<'a> Unpin for Scope<'a>
impl<'a> UnsafeUnpin for Scope<'a>
impl<'a> UnwindSafe for Scope<'a>
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more