pub struct EnvironmentInfo { /* private fields */ }Expand description
Security-relevant metadata for one exact GitHub Environment.
Implementations§
Source§impl EnvironmentInfo
impl EnvironmentInfo
Sourcepub const fn protected_branches(&self) -> bool
pub const fn protected_branches(&self) -> bool
Whether deployments are limited to repository-protected branches.
Sourcepub const fn custom_branch_policies(&self) -> bool
pub const fn custom_branch_policies(&self) -> bool
Whether deployments require a custom branch-policy match.
Sourcepub const fn has_required_reviewers(&self) -> bool
pub const fn has_required_reviewers(&self) -> bool
Whether at least one required deployment reviewer is configured.
Trait Implementations§
Source§impl Clone for EnvironmentInfo
impl Clone for EnvironmentInfo
Source§impl Debug for EnvironmentInfo
impl Debug for EnvironmentInfo
impl Eq for EnvironmentInfo
Source§impl PartialEq for EnvironmentInfo
impl PartialEq for EnvironmentInfo
impl StructuralPartialEq for EnvironmentInfo
Auto Trait Implementations§
impl Freeze for EnvironmentInfo
impl RefUnwindSafe for EnvironmentInfo
impl Send for EnvironmentInfo
impl Sync for EnvironmentInfo
impl Unpin for EnvironmentInfo
impl UnsafeUnpin for EnvironmentInfo
impl UnwindSafe for EnvironmentInfo
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.