pub struct AutoMerge {
pub commit_message: Option<String>,
pub commit_title: Option<String>,
pub enabled_by: Option<User>,
pub merge_method: AutoMergeMergeMethod,
}
Expand description
The status of auto merging a pull request.
JSON schema
{
"title": "PullRequestAutoMerge",
"description": "The status of auto merging a pull request.",
"type": "object",
"required": [
"commit_message",
"commit_title",
"enabled_by",
"merge_method"
],
"properties": {
"commit_message": {
"description": "Commit message for the merge commit.",
"type": [
"string",
"null"
]
},
"commit_title": {
"description": "Title for the merge commit message.",
"type": [
"string",
"null"
]
},
"enabled_by": {
"oneOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
},
"merge_method": {
"description": "The merge method to use.",
"type": "string",
"enum": [
"merge",
"squash",
"rebase"
]
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§commit_message: Option<String>
Commit message for the merge commit.
commit_title: Option<String>
Title for the merge commit message.
enabled_by: Option<User>
§merge_method: AutoMergeMergeMethod
The merge method to use.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AutoMerge
impl<'de> Deserialize<'de> for AutoMerge
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 AutoMerge
impl RefUnwindSafe for AutoMerge
impl Send for AutoMerge
impl Sync for AutoMerge
impl Unpin for AutoMerge
impl UnwindSafe for AutoMerge
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