pub struct AdoResourcesRepositoryId { /* private fields */ }
Expand description
An ADO repository declared as a resource in the top-level pipeline.
Created via crate::pipeline::Pipeline::ado_add_resources_repository
.
Consumed via AdoStepServices::resolve_repository_id
.
Implementations§
Source§impl AdoResourcesRepositoryId
impl AdoResourcesRepositoryId
Sourcepub fn new_self() -> Self
pub fn new_self() -> Self
Create a AdoResourcesRepositoryId
corresponding to self
(i.e: the repo which stores the current pipeline).
This is safe to do from any context, as the self
resource will
always be available.
Sourcepub fn dangerous_get_raw_id(&self) -> &str
pub fn dangerous_get_raw_id(&self) -> &str
(dangerous) get the raw ID associated with this resource.
It is highly recommended to avoid losing type-safety, and
sticking to AdoStepServices::resolve_repository_id
.in order
to resolve this type to a String.
Sourcepub fn dangerous_new(repo_id: &str) -> Self
pub fn dangerous_new(repo_id: &str) -> Self
(dangerous) create a new ID out of thin air.
It is highly recommended to avoid losing type-safety, and
sticking to AdoStepServices::resolve_repository_id
.in order
to resolve this type to a String.
Trait Implementations§
Source§impl Clone for AdoResourcesRepositoryId
impl Clone for AdoResourcesRepositoryId
Source§fn clone(&self) -> AdoResourcesRepositoryId
fn clone(&self) -> AdoResourcesRepositoryId
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more