pub struct Branch {
pub name: String,
pub id: String,
pub env: HashMap<String, Value>,
pub accept: Option<Value>,
pub run: Option<String>,
pub uses: Option<String>,
pub on: Vec<String>,
pub if: Option<String>,
pub steps: Vec<Step>,
pub next: Option<String>,
/* private fields */
}Fields§
§name: String§id: String§env: HashMap<String, Value>§accept: Option<Value>§run: Option<String>§uses: Option<String>§on: Vec<String>§if: Option<String>§steps: Vec<Step>§next: Option<String>Implementations§
source§impl Branch
impl Branch
pub fn new() -> Self
pub fn with_id(self, id: &str) -> Self
pub fn with_name(self, name: &str) -> Self
pub fn with_next(self, next: &str) -> Self
pub fn with_accept(self, accept: &str) -> Self
pub fn with_if(self, if: &str) -> Self
pub fn with_step(self, build: fn(_: Step) -> Step) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Branch
impl<'de> Deserialize<'de> for Branch
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
Auto Trait Implementations§
impl RefUnwindSafe for Branch
impl Send for Branch
impl Sync for Branch
impl Unpin for Branch
impl UnwindSafe for Branch
Blanket Implementations§
source§impl<T> Variant for Twhere
T: Any + Clone + SendSync,
impl<T> Variant for Twhere
T: Any + Clone + SendSync,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.source§fn as_boxed_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn as_boxed_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert this
Variant trait object to Box<dyn Any>.