pub enum AgentPrefixError {
Empty,
TooLong {
max: usize,
actual: usize,
},
InvalidChar {
char: char,
position: usize,
},
MustStartWithLetter {
found: char,
},
MustEndWithLetter {
found: char,
},
ContainsDigit {
position: usize,
},
}Expand description
Errors for agent prefix parsing.
Variants§
Empty
Prefix is empty
TooLong
Prefix exceeds maximum length
InvalidChar
Invalid character (not lowercase letter or underscore)
MustStartWithLetter
Prefix must start with a letter
MustEndWithLetter
Prefix must end with a letter
ContainsDigit
Contains digits (not allowed per TypeID spec)
Trait Implementations§
Source§impl Clone for AgentPrefixError
impl Clone for AgentPrefixError
Source§fn clone(&self) -> AgentPrefixError
fn clone(&self) -> AgentPrefixError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentPrefixError
impl Debug for AgentPrefixError
Source§impl Display for AgentPrefixError
impl Display for AgentPrefixError
impl Eq for AgentPrefixError
Source§impl Error for AgentPrefixError
impl Error for AgentPrefixError
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 AgentPrefixError
impl PartialEq for AgentPrefixError
impl StructuralPartialEq for AgentPrefixError
Auto Trait Implementations§
impl Freeze for AgentPrefixError
impl RefUnwindSafe for AgentPrefixError
impl Send for AgentPrefixError
impl Sync for AgentPrefixError
impl Unpin for AgentPrefixError
impl UnsafeUnpin for AgentPrefixError
impl UnwindSafe for AgentPrefixError
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