pub struct AddSpec {
pub name: String,
pub git: String,
pub tag: Option<String>,
pub rev: Option<String>,
pub branch: Option<String>,
pub entry: Option<PathBuf>,
pub target_dir: Option<PathBuf>,
}Expand description
What add should write into [deps.<name>].
At most one of tag / rev / branch may be set.
Fields§
§name: StringLocal alias used in require().
git: StringRemote git URL.
tag: Option<String>Pin to a tag (exact v1.0.0 or prefix v1.0).
rev: Option<String>Pin to a commit SHA.
branch: Option<String>Track a branch (non-reproducible).
entry: Option<PathBuf>Override the Lua require() entry subdir.
target_dir: Option<PathBuf>Physically vendor the entry into this manifest-relative directory.
Implementations§
Trait Implementations§
impl Eq for AddSpec
impl StructuralPartialEq for AddSpec
Auto Trait Implementations§
impl Freeze for AddSpec
impl RefUnwindSafe for AddSpec
impl Send for AddSpec
impl Sync for AddSpec
impl Unpin for AddSpec
impl UnsafeUnpin for AddSpec
impl UnwindSafe for AddSpec
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
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
Compare self to
key and return true if they are equal.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