Struct astro_run::PullRequestCondition
source · pub struct PullRequestCondition {
pub branches: Option<Vec<String>>,
pub paths: Option<Vec<String>>,
}
Fields§
§branches: Option<Vec<String>>
Pull request base branches
paths: Option<Vec<String>>
Implementations§
source§impl PullRequestCondition
impl PullRequestCondition
pub fn is_match(&self, payload: &ConditionPayload) -> bool
Trait Implementations§
source§impl Clone for PullRequestCondition
impl Clone for PullRequestCondition
source§fn clone(&self) -> PullRequestCondition
fn clone(&self) -> PullRequestCondition
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 PullRequestCondition
impl Debug for PullRequestCondition
source§impl<'de> Deserialize<'de> for PullRequestCondition
impl<'de> Deserialize<'de> for PullRequestCondition
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
source§impl PartialEq<PullRequestCondition> for PullRequestCondition
impl PartialEq<PullRequestCondition> for PullRequestCondition
source§fn eq(&self, other: &PullRequestCondition) -> bool
fn eq(&self, other: &PullRequestCondition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PullRequestCondition
impl Serialize for PullRequestCondition
impl StructuralPartialEq for PullRequestCondition
Auto Trait Implementations§
impl RefUnwindSafe for PullRequestCondition
impl Send for PullRequestCondition
impl Sync for PullRequestCondition
impl Unpin for PullRequestCondition
impl UnwindSafe for PullRequestCondition
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