pub struct ProviderReference {
pub repo: String,
pub name: String,
pub tag: Option<String>,
pub tarball: Option<String>,
}Expand description
A resolved install reference (the grammar from the plan):
gitlab | owner/repo | https://github.com/owner/repo, each
optionally @tag-pinned — or a plain-HTTP URL naming the platform
tarball directly (plans/0014 #1a: arbitrary artifact hosts).
Fields§
§repo: Stringowner/repo — or the full URL for a plain-HTTP install.
name: StringThe bare name (repo stem minus the rootle- prefix, or the stem itself when unprefixed).
tag: Option<String>§tarball: Option<String>Plain-HTTP source: the tarball URL when the reference is not a
releases-API source. Install-and-pin — update/upgrade
never track these (plans/0014 #1b).
Implementations§
Source§impl ProviderReference
impl ProviderReference
pub fn parse(input: &str) -> Result<ProviderReference>
Trait Implementations§
Source§impl Clone for ProviderReference
impl Clone for ProviderReference
Source§fn clone(&self) -> ProviderReference
fn clone(&self) -> ProviderReference
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 ProviderReference
impl Debug for ProviderReference
Source§impl PartialEq for ProviderReference
impl PartialEq for ProviderReference
impl StructuralPartialEq for ProviderReference
Auto Trait Implementations§
impl Freeze for ProviderReference
impl RefUnwindSafe for ProviderReference
impl Send for ProviderReference
impl Sync for ProviderReference
impl Unpin for ProviderReference
impl UnsafeUnpin for ProviderReference
impl UnwindSafe for ProviderReference
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