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§
Source§impl Debug for Protection
impl Debug for Protection
Source§impl<'de> Deserialize<'de> for Protection
impl<'de> Deserialize<'de> for Protection
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
Auto Trait Implementations§
impl Freeze for Protection
impl RefUnwindSafe for Protection
impl Send for Protection
impl Sync for Protection
impl Unpin for Protection
impl UnwindSafe for Protection
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