pub enum DeleteApprovalRuleTemplateError {
ApprovalRuleTemplateInUse(String),
ApprovalRuleTemplateNameRequired(String),
InvalidApprovalRuleTemplateName(String),
}Expand description
Errors returned by DeleteApprovalRuleTemplate
Variants§
ApprovalRuleTemplateInUse(String)
The approval rule template is associated with one or more repositories. You cannot delete a template that is associated with a repository. Remove all associations, and then try again.
ApprovalRuleTemplateNameRequired(String)
An approval rule template name is required, but was not specified.
InvalidApprovalRuleTemplateName(String)
The name of the approval rule template is not valid. Template names must be between 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, see AWS CodeCommit User Guide.
Implementations§
Trait Implementations§
Source§impl Error for DeleteApprovalRuleTemplateError
impl Error for DeleteApprovalRuleTemplateError
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 DeleteApprovalRuleTemplateError
impl PartialEq for DeleteApprovalRuleTemplateError
Source§fn eq(&self, other: &DeleteApprovalRuleTemplateError) -> bool
fn eq(&self, other: &DeleteApprovalRuleTemplateError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeleteApprovalRuleTemplateError
Auto Trait Implementations§
impl Freeze for DeleteApprovalRuleTemplateError
impl RefUnwindSafe for DeleteApprovalRuleTemplateError
impl Send for DeleteApprovalRuleTemplateError
impl Sync for DeleteApprovalRuleTemplateError
impl Unpin for DeleteApprovalRuleTemplateError
impl UnwindSafe for DeleteApprovalRuleTemplateError
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