pub enum UpdateCommentError {
CommentContentRequired(String),
CommentContentSizeLimitExceeded(String),
CommentDeleted(String),
CommentDoesNotExist(String),
CommentIdRequired(String),
CommentNotCreatedByCaller(String),
InvalidCommentId(String),
}Expand description
Errors returned by UpdateComment
Variants§
CommentContentRequired(String)
The comment is empty. You must provide some content for a comment. The content cannot be null.
CommentContentSizeLimitExceeded(String)
The comment is too large. Comments are limited to 1,000 characters.
CommentDeleted(String)
This comment has already been deleted. You cannot edit or delete a deleted comment.
CommentDoesNotExist(String)
No comment exists with the provided ID. Verify that you have used the correct ID, and then try again.
CommentIdRequired(String)
The comment ID is missing or null. A comment ID is required.
CommentNotCreatedByCaller(String)
You cannot modify or delete this comment. Only comment authors can modify or delete their comments.
InvalidCommentId(String)
The comment ID is not in a valid format. Make sure that you have provided the full comment ID.
Implementations§
Source§impl UpdateCommentError
impl UpdateCommentError
pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<UpdateCommentError>
Trait Implementations§
Source§impl Debug for UpdateCommentError
impl Debug for UpdateCommentError
Source§impl Display for UpdateCommentError
impl Display for UpdateCommentError
Source§impl Error for UpdateCommentError
impl Error for UpdateCommentError
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 UpdateCommentError
impl PartialEq for UpdateCommentError
impl StructuralPartialEq for UpdateCommentError
Auto Trait Implementations§
impl Freeze for UpdateCommentError
impl RefUnwindSafe for UpdateCommentError
impl Send for UpdateCommentError
impl Sync for UpdateCommentError
impl Unpin for UpdateCommentError
impl UnwindSafe for UpdateCommentError
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