pub enum UpdatePullRequestDescriptionError {
InvalidDescription(String),
InvalidPullRequestId(String),
PullRequestAlreadyClosed(String),
PullRequestDoesNotExist(String),
PullRequestIdRequired(String),
}Expand description
Errors returned by UpdatePullRequestDescription
Variants§
InvalidDescription(String)
The pull request description is not valid. Descriptions cannot be more than 1,000 characters.
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.
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.
Implementations§
Trait Implementations§
Source§impl Error for UpdatePullRequestDescriptionError
impl Error for UpdatePullRequestDescriptionError
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()
Source§impl PartialEq for UpdatePullRequestDescriptionError
impl PartialEq for UpdatePullRequestDescriptionError
Source§fn eq(&self, other: &UpdatePullRequestDescriptionError) -> bool
fn eq(&self, other: &UpdatePullRequestDescriptionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdatePullRequestDescriptionError
Auto Trait Implementations§
impl Freeze for UpdatePullRequestDescriptionError
impl RefUnwindSafe for UpdatePullRequestDescriptionError
impl Send for UpdatePullRequestDescriptionError
impl Sync for UpdatePullRequestDescriptionError
impl Unpin for UpdatePullRequestDescriptionError
impl UnwindSafe for UpdatePullRequestDescriptionError
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