pub struct CreateRuleBody {
pub branch_pattern: String,
pub disallow_force_push: Option<bool>,
pub require_ci_pass: Option<bool>,
pub require_linear_history: Option<bool>,
pub require_review_count: Option<i32>,
pub required_status_checks: Vec<String>,
}Expand description
CreateRuleBody
JSON schema
{
"type": "object",
"required": [
"branch_pattern"
],
"properties": {
"branch_pattern": {
"type": "string"
},
"disallow_force_push": {
"type": "boolean"
},
"require_ci_pass": {
"type": "boolean"
},
"require_linear_history": {
"type": "boolean"
},
"require_review_count": {
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"required_status_checks": {
"type": "array",
"items": {
"type": "string"
}
}
}
}Fields§
§branch_pattern: String§disallow_force_push: Option<bool>§require_ci_pass: Option<bool>§require_linear_history: Option<bool>§require_review_count: Option<i32>§required_status_checks: Vec<String>Implementations§
Source§impl CreateRuleBody
impl CreateRuleBody
pub fn builder() -> CreateRuleBody
Trait Implementations§
Source§impl Clone for CreateRuleBody
impl Clone for CreateRuleBody
Source§fn clone(&self) -> CreateRuleBody
fn clone(&self) -> CreateRuleBody
Returns a duplicate 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 CreateRuleBody
impl Debug for CreateRuleBody
Source§impl<'de> Deserialize<'de> for CreateRuleBody
impl<'de> Deserialize<'de> for CreateRuleBody
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 From<&CreateRuleBody> for CreateRuleBody
impl From<&CreateRuleBody> for CreateRuleBody
Source§fn from(value: &CreateRuleBody) -> Self
fn from(value: &CreateRuleBody) -> Self
Converts to this type from the input type.
Source§impl From<CreateRuleBody> for CreateRuleBody
impl From<CreateRuleBody> for CreateRuleBody
Source§fn from(value: CreateRuleBody) -> Self
fn from(value: CreateRuleBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateRuleBody
impl Serialize for CreateRuleBody
Source§impl TryFrom<CreateRuleBody> for CreateRuleBody
impl TryFrom<CreateRuleBody> for CreateRuleBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateRuleBody) -> Result<Self, ConversionError>
fn try_from(value: CreateRuleBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateRuleBody
impl RefUnwindSafe for CreateRuleBody
impl Send for CreateRuleBody
impl Sync for CreateRuleBody
impl Unpin for CreateRuleBody
impl UnsafeUnpin for CreateRuleBody
impl UnwindSafe for CreateRuleBody
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