pub struct MovePreview {
pub entities: Vec<EntityId>,
pub staying: Vec<EntityId>,
pub losing: Vec<String>,
pub gaining: Vec<String>,
pub purges_all: bool,
pub secrets: bool,
}Expand description
What a move would take, for an app to show before it moves.
Fields§
§entities: Vec<EntityId>The entities that move: the one given first, then the folders, lists, memberships and members that it holds, through every level, each once.
staying: Vec<EntityId>The folders and lists of the old space that stay, and hold some of them: they find what moved through the marks that lead to it. Ordered by ID.
losing: Vec<String>The members of the old space who are no members of the new one, by name, sorted: those who no longer see what moves once what stays behind is purged.
gaining: Vec<String>The members of the new space who are no members of the old one, by name, sorted: those who see what moves for the first time, its history too where the move brings it.
purges_all: boolWhether the mover may purge all that stays behind: in the personal space, or as an admin of the old space; an editor purges only the changes they signed there, and those who lose what moves lose it only once an admin purges the rest.
secrets: boolWhether the move needs the secrets unlocked, as far as this replica can tell: what moves holds secret values, values of fields secret in the old space, which move only with the secrets of both spaces unlocked, or stay behind; or values of fields secret in the new space, which are sealed there. While the old space’s secrets are locked, an entity whose types list a secret field may hold secret values.
Trait Implementations§
Source§impl Clone for MovePreview
impl Clone for MovePreview
Source§impl Debug for MovePreview
impl Debug for MovePreview
impl Eq for MovePreview
Source§impl PartialEq for MovePreview
impl PartialEq for MovePreview
impl StructuralPartialEq for MovePreview
Auto Trait Implementations§
impl Forget for MovePreview
impl Freeze for MovePreview
impl Move for MovePreview
impl RefUnwindSafe for MovePreview
impl Send for MovePreview
impl Sync for MovePreview
impl Unpin for MovePreview
impl UnsafeUnpin for MovePreview
impl UnwindSafe for MovePreview
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
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§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
key and return true if they are equal.