pub enum UpdatePullRequestTitleError {
InvalidPullRequestId(String),
InvalidTitle(String),
PullRequestAlreadyClosed(String),
PullRequestDoesNotExist(String),
PullRequestIdRequired(String),
TitleRequired(String),
}Expand description
Errors returned by UpdatePullRequestTitle
Variants§
InvalidPullRequestId(String)
The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request is in the specified repository, and then try again.
InvalidTitle(String)
The title of the pull request is not valid. Pull request titles cannot exceed 100 characters in length.
PullRequestAlreadyClosed(String)
The pull request status cannot be updated because it is already closed.
PullRequestDoesNotExist(String)
The pull request ID could not be found. Make sure that you have specified the correct repository name and pull request ID, and then try again.
PullRequestIdRequired(String)
A pull request ID is required, but none was provided.
TitleRequired(String)
A pull request title is required. It cannot be empty or null.
Implementations§
Source§impl UpdatePullRequestTitleError
impl UpdatePullRequestTitleError
pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<UpdatePullRequestTitleError>
Trait Implementations§
Source§impl Debug for UpdatePullRequestTitleError
impl Debug for UpdatePullRequestTitleError
Source§impl Error for UpdatePullRequestTitleError
impl Error for UpdatePullRequestTitleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl StructuralPartialEq for UpdatePullRequestTitleError
Auto Trait Implementations§
impl Freeze for UpdatePullRequestTitleError
impl RefUnwindSafe for UpdatePullRequestTitleError
impl Send for UpdatePullRequestTitleError
impl Sync for UpdatePullRequestTitleError
impl Unpin for UpdatePullRequestTitleError
impl UnwindSafe for UpdatePullRequestTitleError
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