pub enum LabelStrategy {
Basename,
PreferManifestName,
}Expand description
Strategy for choosing a project’s label.
Variants§
Basename
Use the directory basename verbatim.
PreferManifestName
For Rust / Node / Bun projects, read name from Cargo.toml or
package.json. Falls back to the basename for other kinds.
Trait Implementations§
Source§impl Clone for LabelStrategy
impl Clone for LabelStrategy
Source§fn clone(&self) -> LabelStrategy
fn clone(&self) -> LabelStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LabelStrategy
impl Debug for LabelStrategy
impl Copy for LabelStrategy
Auto Trait Implementations§
impl Freeze for LabelStrategy
impl RefUnwindSafe for LabelStrategy
impl Send for LabelStrategy
impl Sync for LabelStrategy
impl Unpin for LabelStrategy
impl UnsafeUnpin for LabelStrategy
impl UnwindSafe for LabelStrategy
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