pub trait Cicd {
// Required methods
fn list(&self, args: PipelineBodyArgs) -> Result<Vec<Pipeline>>;
fn get_pipeline(&self, id: i64) -> Result<Pipeline>;
fn num_pages(&self) -> Result<Option<u32>>;
fn num_resources(&self) -> Result<Option<NumberDeltaErr>>;
fn lint(&self, body: YamlBytes<'_>) -> Result<LintResponse>;
}Required Methods§
fn list(&self, args: PipelineBodyArgs) -> Result<Vec<Pipeline>>
fn get_pipeline(&self, id: i64) -> Result<Pipeline>
fn num_pages(&self) -> Result<Option<u32>>
fn num_resources(&self) -> Result<Option<NumberDeltaErr>>
Sourcefn lint(&self, body: YamlBytes<'_>) -> Result<LintResponse>
fn lint(&self, body: YamlBytes<'_>) -> Result<LintResponse>
Lints ci/cd pipeline file contents. In gitlab this is the .gitlab-ci.yml file. Checks that the file is valid and has no syntax errors.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".