pub struct EntityAliasChange { /* private fields */ }Expand description
A change to an entity’s caller-origin aliases, validated when it is made.
Implementations§
Source§impl EntityAliasChange
impl EntityAliasChange
Sourcepub fn update(add: &[String], remove: &[String]) -> RuntimeResult<Self>
pub fn update(add: &[String], remove: &[String]) -> RuntimeResult<Self>
update(add_aliases, remove_aliases). One alias may not be both
added and removed by the same call.
Sourcepub fn replace(aliases: &[String]) -> RuntimeResult<Self>
pub fn replace(aliases: &[String]) -> RuntimeResult<Self>
The entity’s caller aliases become exactly aliases, as a create and
a keyed reload write them. Rename- and merge-origin aliases stay.
Sourcepub fn keeping_old_name(self, keep: bool) -> Self
pub fn keeping_old_name(self, keep: bool) -> Self
keep_old_name: whether a write that renames the entity keeps the
old name as a rename alias (ADR-221 section 3). Kept by default.
Sourcepub fn not_stored(&self, name: &str) -> Vec<String>
pub fn not_stored(&self, name: &str) -> Vec<String>
The requested aliases equal to name, which are not stored.
Trait Implementations§
Source§impl Clone for EntityAliasChange
impl Clone for EntityAliasChange
Source§impl Debug for EntityAliasChange
impl Debug for EntityAliasChange
Source§impl Default for EntityAliasChange
impl Default for EntityAliasChange
impl Eq for EntityAliasChange
Source§impl PartialEq for EntityAliasChange
impl PartialEq for EntityAliasChange
impl StructuralPartialEq for EntityAliasChange
Auto Trait Implementations§
impl Forget for EntityAliasChange
impl Freeze for EntityAliasChangewhere
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
impl Move for EntityAliasChange
impl RefUnwindSafe for EntityAliasChange
impl Send for EntityAliasChange
impl Sync for EntityAliasChange
impl Unpin for EntityAliasChange
impl UnsafeUnpin for EntityAliasChangewhere
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for EntityAliasChange
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.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