pub struct BypassActor {
pub actor_type: ActorType,
pub actor_id: Option<i64>,
pub bypass_mode: BypassMode,
}Expand description
An actor that may bypass a ruleset.
Fields§
§actor_type: ActorTypeThe kind of actor.
actor_id: Option<i64>The actor’s id, which organization admins and deploy keys do not need. An integration without one is the App the client acts as.
bypass_mode: BypassModeWhen the actor may bypass.
Implementations§
Source§impl BypassActor
impl BypassActor
Sourcepub const fn wire_id(&self) -> Option<i64>
pub const fn wire_id(&self) -> Option<i64>
The id GitHub expects in a write.
An organization admin without an id gets the admin role id. Other types send their own id, so an integration must have its App id filled in before it is written.
const fn is_own_app(&self) -> bool
const fn normalized(self) -> Self
Trait Implementations§
Source§impl Clone for BypassActor
impl Clone for BypassActor
Source§fn clone(&self) -> BypassActor
fn clone(&self) -> BypassActor
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 moreimpl Copy for BypassActor
Source§impl Debug for BypassActor
impl Debug for BypassActor
impl Eq for BypassActor
Source§impl<'ʄ> Facet<'ʄ> for BypassActor
impl<'ʄ> Facet<'ʄ> for BypassActor
Source§impl From<&BypassActor> for BypassActorBody
impl From<&BypassActor> for BypassActorBody
Source§fn from(actor: &BypassActor) -> Self
fn from(actor: &BypassActor) -> Self
Converts to this type from the input type.
Source§impl Ord for BypassActor
impl Ord for BypassActor
Source§fn cmp(&self, other: &BypassActor) -> Ordering
fn cmp(&self, other: &BypassActor) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BypassActor
impl PartialEq for BypassActor
Source§impl PartialOrd for BypassActor
impl PartialOrd for BypassActor
impl StructuralPartialEq for BypassActor
Auto Trait Implementations§
impl Freeze for BypassActor
impl RefUnwindSafe for BypassActor
impl Send for BypassActor
impl Sync for BypassActor
impl Unpin for BypassActor
impl UnsafeUnpin for BypassActor
impl UnwindSafe for BypassActor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.