pub struct RepoEdit {
pub new_name: Option<String>,
pub description: Option<Option<String>>,
pub stack: Option<Vec<String>>,
pub path: Option<PathBuf>,
}Expand description
A set of in-place changes to apply to a registered repo via
Config::edit_repo. Every field is opt-in: None (or the outer None
for description) leaves the current value untouched.
new_name: rename the entry; workspace memberships are rewritten so groupings survive the rename.description:Some(Some(text))sets it,Some(None)clears it,Noneleaves it unchanged.stack:Some(vec)replaces the stack wholesale;Noneleaves it.path: a pre-validated, canonicalized path;Some(p)replaces it.
Fields§
§new_name: Option<String>§description: Option<Option<String>>§stack: Option<Vec<String>>§path: Option<PathBuf>Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepoEdit
impl RefUnwindSafe for RepoEdit
impl Send for RepoEdit
impl Sync for RepoEdit
impl Unpin for RepoEdit
impl UnsafeUnpin for RepoEdit
impl UnwindSafe for RepoEdit
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