pub struct RemovalTarget {
pub name: String,
pub backing_identity: String,
pub worktree_identity: String,
}Expand description
A selector is bound before any worktree can be renamed or replaced.
Fields§
§name: StringName used to identify this entry.
backing_identity: StringIdentity used to distinguish backing repositories across path changes.
worktree_identity: StringIdentity used to verify the linked worktree before applying changes.
Implementations§
Source§impl RemovalTarget
impl RemovalTarget
Sourcepub fn matches(&self, participant: &Participant) -> bool
pub fn matches(&self, participant: &Participant) -> bool
Verify the bound name and both identities against the current participant.
Trait Implementations§
Source§impl Clone for RemovalTarget
impl Clone for RemovalTarget
Source§impl Debug for RemovalTarget
impl Debug for RemovalTarget
impl Eq for RemovalTarget
Source§impl PartialEq for RemovalTarget
impl PartialEq for RemovalTarget
impl StructuralPartialEq for RemovalTarget
Auto Trait Implementations§
impl Forget for RemovalTarget
impl Freeze for RemovalTarget
impl Move for RemovalTarget
impl RefUnwindSafe for RemovalTarget
impl Send for RemovalTarget
impl Sync for RemovalTarget
impl Unpin for RemovalTarget
impl UnsafeUnpin for RemovalTarget
impl UnwindSafe for RemovalTarget
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