pub struct TreadleDefinition {
pub format_version: u32,
pub name: String,
pub jobs: Vec<TreadleJob>,
pub services: Vec<TreadleServiceContainer>,
pub secret_refs: Vec<TreadleSecretRef>,
}Expand description
A fully-expanded, content-addressed treadle CI definition.
Version 1 is intentionally strict: producers MUST populate every required scalar/message described below, MUST NOT emit unresolved matrix variables, and MUST use the canonical encoding in docs/treadle-definition-v1.md before hashing or signing. Readers accept only their current format version.
Fields§
§format_version: u32Definition-format version. Version 1 readers accept exactly 1.
name: StringStable human-readable pipeline name.
jobs: Vec<TreadleJob>Concrete jobs. Matrix expansion has already happened before this message is built; each job contains only its concrete matrix bindings.
services: Vec<TreadleServiceContainer>Pipeline-wide service-container declarations referenced by checks by name.
secret_refs: Vec<TreadleSecretRef>Names-only secret declarations. Secret values never enter the definition.
Trait Implementations§
Source§impl Clone for TreadleDefinition
impl Clone for TreadleDefinition
Source§fn clone(&self) -> TreadleDefinition
fn clone(&self) -> TreadleDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TreadleDefinition
impl Debug for TreadleDefinition
Source§impl Default for TreadleDefinition
impl Default for TreadleDefinition
Source§impl Message for TreadleDefinition
impl Message for TreadleDefinition
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for TreadleDefinition
impl PartialEq for TreadleDefinition
impl StructuralPartialEq for TreadleDefinition
Auto Trait Implementations§
impl Freeze for TreadleDefinition
impl RefUnwindSafe for TreadleDefinition
impl Send for TreadleDefinition
impl Sync for TreadleDefinition
impl Unpin for TreadleDefinition
impl UnsafeUnpin for TreadleDefinition
impl UnwindSafe for TreadleDefinition
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