#[non_exhaustive]pub struct PushFilter {
pub invert_regex: bool,
pub git_ref: Option<GitRef>,
/* private fields */
}Expand description
Push contains filter properties for matching GitHub git pushes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.invert_regex: boolWhen true, only trigger a build if the revision regex does NOT match the git_ref regex.
git_ref: Option<GitRef>Modified refs to match. A modified refs are the refs modified by a git push operation.
Implementations§
Source§impl PushFilter
impl PushFilter
pub fn new() -> Self
Sourcepub fn set_invert_regex<T: Into<bool>>(self, v: T) -> Self
pub fn set_invert_regex<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_git_ref<T: Into<Option<GitRef>>>(self, v: T) -> Self
pub fn set_git_ref<T: Into<Option<GitRef>>>(self, v: T) -> Self
Sourcepub fn branch(&self) -> Option<&String>
pub fn branch(&self) -> Option<&String>
The value of git_ref
if it holds a Branch, None if the field is not set or
holds a different branch.
Sourcepub fn set_branch<T: Into<String>>(self, v: T) -> Self
pub fn set_branch<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for PushFilter
impl Clone for PushFilter
Source§fn clone(&self) -> PushFilter
fn clone(&self) -> PushFilter
Returns a duplicate 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 PushFilter
impl Debug for PushFilter
Source§impl Default for PushFilter
impl Default for PushFilter
Source§fn default() -> PushFilter
fn default() -> PushFilter
Returns the “default value” for a type. Read more
Source§impl PartialEq for PushFilter
impl PartialEq for PushFilter
impl StructuralPartialEq for PushFilter
Auto Trait Implementations§
impl Freeze for PushFilter
impl RefUnwindSafe for PushFilter
impl Send for PushFilter
impl Sync for PushFilter
impl Unpin for PushFilter
impl UnwindSafe for PushFilter
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