pub enum RepoSource<C = VarNotClaimed> {
AdoResource(AdoResourcesRepositoryId),
GithubRepo {
owner: String,
name: String,
},
GithubSelf,
ExistingClone(ReadVar<PathBuf, C>),
LocalOnlyNewClone {
url: String,
path: PathBuf,
ignore_existing_clone: bool,
},
}
Expand description
Describes the source of a particular repo.
Variants§
AdoResource(AdoResourcesRepositoryId)
(ADO Only) Checkout a repo described by the given ADO resource.
AdoResourcesRepositoryId
is only obtainable by declaring the
resource at the pipeline level. See the docs for this type for more
information.
GithubRepo
(GitHub Only) Checkout a repo described by the given repository “{owner}/{name}” (e.g. “microsoft/openvmm”) .
GithubSelf
(GitHub Only) Checkout the repo containing the pipeline.
ExistingClone(ReadVar<PathBuf, C>)
Use a pre-existing clone of the repo.
LocalOnlyNewClone
(Local Only): Clone the repo from the given URL in the given path.
Trait Implementations§
Source§impl ClaimVar for RepoSource
impl ClaimVar for RepoSource
Source§type Claimed = RepoSource<VarClaimed>
type Claimed = RepoSource<VarClaimed>
The claimed version of Self.
Source§impl<C> Clone for RepoSource<C>
impl<C> Clone for RepoSource<C>
Source§impl<'de, C> Deserialize<'de> for RepoSource<C>where
C: Deserialize<'de>,
impl<'de, C> Deserialize<'de> for RepoSource<C>where
C: Deserialize<'de>,
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
Auto Trait Implementations§
impl<C> Freeze for RepoSource<C>
impl<C> RefUnwindSafe for RepoSource<C>where
C: RefUnwindSafe,
impl<C> Send for RepoSource<C>where
C: Send,
impl<C> Sync for RepoSource<C>where
C: Sync,
impl<C> Unpin for RepoSource<C>where
C: Unpin,
impl<C> UnwindSafe for RepoSource<C>where
C: UnwindSafe,
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<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