pub struct SourceSpec {
pub git: Option<String>,
pub tag: Option<String>,
pub branch: Option<String>,
pub rev: Option<String>,
pub path: Option<String>,
}Expand description
A source as written in config.toml: Cargo’s git-dependency fields.
Fields§
§git: Option<String>Repository URL.
tag: Option<String>Tag to use; only with git.
branch: Option<String>Branch to use; only with git.
rev: Option<String>Full commit id to use; only with git.
path: Option<String>The profile’s directory: relative to the target, or within the repository with git.
Trait Implementations§
Source§impl Debug for SourceSpec
impl Debug for SourceSpec
Source§impl Default for SourceSpec
impl Default for SourceSpec
Source§impl<'de> Deserialize<'de> for SourceSpec
impl<'de> Deserialize<'de> for SourceSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Source> for SourceSpec
impl From<Source> for SourceSpec
Source§impl JsonSchema for SourceSpec
impl JsonSchema for SourceSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for SourceSpec
impl Serialize for SourceSpec
Source§impl TryFrom<SourceSpec> for Source
impl TryFrom<SourceSpec> for Source
Source§type Error = SourceError
type Error = SourceError
The type returned in the event of a conversion error.
Source§fn try_from(spec: SourceSpec) -> Result<Self, SourceError>
fn try_from(spec: SourceSpec) -> Result<Self, SourceError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SourceSpec
impl RefUnwindSafe for SourceSpec
impl Send for SourceSpec
impl Sync for SourceSpec
impl Unpin for SourceSpec
impl UnsafeUnpin for SourceSpec
impl UnwindSafe for SourceSpec
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