Struct hubcaps::branches::Protection
source · pub struct Protection {
pub required_status_checks: Option<StatusChecks>,
pub enforce_admins: bool,
pub required_pull_request_reviews: Option<RequiredPullRequestReviews>,
pub restrictions: Option<Restrictions>,
}
Fields
required_status_checks: Option<StatusChecks>
enforce_admins: bool
required_pull_request_reviews: Option<RequiredPullRequestReviews>
restrictions: Option<Restrictions>
Trait Implementations
sourceimpl Debug for Protection
impl Debug for Protection
sourceimpl<'de> Deserialize<'de> for Protection
impl<'de> Deserialize<'de> for Protection
sourcefn 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
sourceimpl Serialize for Protection
impl Serialize for Protection
Auto Trait Implementations
impl RefUnwindSafe for Protection
impl Send for Protection
impl Sync for Protection
impl Unpin for Protection
impl UnwindSafe for Protection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more