pub struct AdoRuntimeVar { /* private fields */ }
Expand description
Handle to an ADO variable.
Includes a (non-exhaustive) list of associated constants corresponding to global ADO vars which are always available.
Implementations§
Source§impl AdoRuntimeVar
impl AdoRuntimeVar
Sourcepub const BUILD__SOURCE_BRANCH: AdoRuntimeVar
pub const BUILD__SOURCE_BRANCH: AdoRuntimeVar
build.SourceBranch
NOTE: Includes the full branch ref (ex: refs/heads/main
) so
unlike build.SourceBranchName
, a branch like user/foo/bar
won’t be stripped to just bar
Sourcepub const BUILD__BUILD_NUMBER: AdoRuntimeVar
pub const BUILD__BUILD_NUMBER: AdoRuntimeVar
build.BuildNumber
Sourcepub const SYSTEM__ACCESS_TOKEN: AdoRuntimeVar
pub const SYSTEM__ACCESS_TOKEN: AdoRuntimeVar
System.AccessToken
Sourcepub const SYSTEM__JOB_ATTEMPT: AdoRuntimeVar
pub const SYSTEM__JOB_ATTEMPT: AdoRuntimeVar
System.System.JobAttempt
Source§impl AdoRuntimeVar
impl AdoRuntimeVar
Sourcepub fn as_raw_var_name(&self) -> String
pub fn as_raw_var_name(&self) -> String
Get the raw underlying ADO variable name
Sourcepub fn dangerous_from_global(
ado_var_name: impl AsRef<str>,
is_secret: bool,
) -> AdoRuntimeVar
pub fn dangerous_from_global( ado_var_name: impl AsRef<str>, is_secret: bool, ) -> AdoRuntimeVar
Get a handle to an ADO runtime variable corresponding to a global ADO variable with the given name.
This method should be used rarely and with great care!
ADO variables are global, and sidestep the type-safe data flow between flowey nodes entirely!
Trait Implementations§
Source§impl Clone for AdoRuntimeVar
impl Clone for AdoRuntimeVar
Source§fn clone(&self) -> AdoRuntimeVar
fn clone(&self) -> AdoRuntimeVar
Returns a copy 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 AdoRuntimeVar
impl Debug for AdoRuntimeVar
Source§impl<'de> Deserialize<'de> for AdoRuntimeVar
impl<'de> Deserialize<'de> for AdoRuntimeVar
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdoRuntimeVar, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdoRuntimeVar, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AdoRuntimeVar
impl Serialize for AdoRuntimeVar
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AdoRuntimeVar
impl RefUnwindSafe for AdoRuntimeVar
impl Send for AdoRuntimeVar
impl Sync for AdoRuntimeVar
impl Unpin for AdoRuntimeVar
impl UnwindSafe for AdoRuntimeVar
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