Struct ci_env::CiEnvironment
source · pub struct CiEnvironment {
pub base_branch: Option<String>,
pub branch: String,
pub id: String,
pub provider: CiProvider,
pub request_id: Option<String>,
pub request_url: Option<String>,
pub revision: String,
pub url: Option<String>,
}Fields§
§base_branch: Option<String>Target branch of the pull/merge request.
branch: StringSource branch that triggered the pipeline.
id: StringUnique ID of the current pipeline.
provider: CiProviderName of the provider.
request_id: Option<String>ID of an associated pull/merge request.
request_url: Option<String>Link to the pull/merge request.
revision: StringRevision (commit, sha, etc) that triggered the pipeline.
url: Option<String>Link to the pipeline.
Trait Implementations§
source§impl Clone for CiEnvironment
impl Clone for CiEnvironment
source§fn clone(&self) -> CiEnvironment
fn clone(&self) -> CiEnvironment
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 CiEnvironment
impl Debug for CiEnvironment
source§impl Default for CiEnvironment
impl Default for CiEnvironment
source§fn default() -> CiEnvironment
fn default() -> CiEnvironment
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CiEnvironment
impl<'de> Deserialize<'de> for CiEnvironment
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