#[non_exhaustive]pub struct SourceConfigValue {
pub replace_with: Option<String>,
pub directory: Option<PathBuf>,
pub registry: Option<String>,
pub local_registry: Option<PathBuf>,
pub git: Option<String>,
pub branch: Option<String>,
pub tag: Option<String>,
pub rev: Option<String>,
}
Expand description
A value of the [source]
table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.replace_with: Option<String>
If set, replace this source with the given named source or named registry.
directory: Option<PathBuf>
Sets the path to a directory to use as a directory source.
registry: Option<String>
Sets the URL to use for a registry source.
local_registry: Option<PathBuf>
Sets the path to a directory to use as a local registry source.
git: Option<String>
Sets the URL to use for a git source.
branch: Option<String>
Sets the branch name to use for a git repository. If none of branch, tag, or rev is set, defaults to the master branch.
tag: Option<String>
Sets the tag name to use for a git repository. If none of branch, tag, or rev is set, defaults to the master branch.
rev: Option<String>
Sets the revision to use for a git repository. If none of branch, tag, or rev is set, defaults to the master branch.
Trait Implementations§
Source§impl Clone for SourceConfigValue
impl Clone for SourceConfigValue
Source§fn clone(&self) -> SourceConfigValue
fn clone(&self) -> SourceConfigValue
Returns a duplicate of the value. Read more
1.0.0 · 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 SourceConfigValue
impl Debug for SourceConfigValue
Source§impl Default for SourceConfigValue
impl Default for SourceConfigValue
Source§fn default() -> SourceConfigValue
fn default() -> SourceConfigValue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SourceConfigValue
impl RefUnwindSafe for SourceConfigValue
impl Send for SourceConfigValue
impl Sync for SourceConfigValue
impl Unpin for SourceConfigValue
impl UnwindSafe for SourceConfigValue
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