Struct octorust::types::BranchProtection
source · pub struct BranchProtection {Show 13 fields
pub allow_deletions: Option<AllowDeletions>,
pub allow_force_pushes: Option<AllowDeletions>,
pub enabled: bool,
pub enforce_admins: Option<EnforceAdmins>,
pub name: String,
pub protection_url: String,
pub required_conversation_resolution: Option<AllowDeletions>,
pub required_linear_history: Option<AllowDeletions>,
pub required_pull_request_reviews: Option<ProtectedBranchPullRequestReview>,
pub required_signatures: Option<EnforceAdmins>,
pub required_status_checks: Option<RequiredStatusChecks>,
pub restrictions: Option<BranchRestrictionPolicy>,
pub url: String,
}
Expand description
Branch Protection
Fields§
§allow_deletions: Option<AllowDeletions>
Branch Protection
allow_force_pushes: Option<AllowDeletions>
Branch Protection
enabled: bool
Branch Protection
enforce_admins: Option<EnforceAdmins>
Branch Protection
name: String
§protection_url: String
§required_conversation_resolution: Option<AllowDeletions>
Branch Protection
required_linear_history: Option<AllowDeletions>
Branch Protection
required_pull_request_reviews: Option<ProtectedBranchPullRequestReview>
Branch Protection
required_signatures: Option<EnforceAdmins>
Branch Protection
required_status_checks: Option<RequiredStatusChecks>
Branch Protection
restrictions: Option<BranchRestrictionPolicy>
Branch Protection
url: String
Trait Implementations§
source§impl Clone for BranchProtection
impl Clone for BranchProtection
source§fn clone(&self) -> BranchProtection
fn clone(&self) -> BranchProtection
Returns a copy 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 BranchProtection
impl Debug for BranchProtection
source§impl<'de> Deserialize<'de> for BranchProtection
impl<'de> Deserialize<'de> for BranchProtection
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
source§impl JsonSchema for BranchProtection
impl JsonSchema for BranchProtection
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<BranchProtection> for BranchProtection
impl PartialEq<BranchProtection> for BranchProtection
source§fn eq(&self, other: &BranchProtection) -> bool
fn eq(&self, other: &BranchProtection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BranchProtection
impl Serialize for BranchProtection
impl StructuralPartialEq for BranchProtection
Auto Trait Implementations§
impl RefUnwindSafe for BranchProtection
impl Send for BranchProtection
impl Sync for BranchProtection
impl Unpin for BranchProtection
impl UnwindSafe for BranchProtection
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