pub enum MessageError {
Show 18 variants
EmptyAgentId,
EmptyStatusField,
EmptyNeedsField,
EmptyFromField,
EmptyVerifiedBy,
EmptyErrors,
EmptyQuestionField,
EmptyIntentFiles,
EmptyIntentFileEntry,
EmptyIntentSummary,
ZeroValidForSeconds,
EmptyMergedBranch,
EmptyNewMainSha,
EmptyBase,
EmptyCategory,
EmptyTitle,
EmptyTimestamp,
Deserialize(Error),
}Expand description
Validation errors for broker messages.
Variants§
EmptyAgentId
The agent_id field is empty or whitespace-only.
EmptyStatusField
The status field is empty or whitespace-only.
EmptyNeedsField
The needs field is empty or whitespace-only.
EmptyFromField
The from field is empty or whitespace-only.
EmptyVerifiedBy
The verified_by field is empty or whitespace-only.
EmptyErrors
The errors list is empty.
EmptyQuestionField
The question field is empty or whitespace-only.
EmptyIntentFiles
The intent files array is empty.
EmptyIntentFileEntry
An entry in the intent files array is empty or whitespace-only.
EmptyIntentSummary
The intent summary field is empty or whitespace-only.
ZeroValidForSeconds
The intent valid_for_seconds field is zero.
EmptyMergedBranch
The advanced-main merged_branch field is empty or whitespace-only.
EmptyNewMainSha
The advanced-main new_main_sha field is empty or whitespace-only.
EmptyBase
The advanced-main base field is empty or whitespace-only.
EmptyCategory
The learning category field is empty or whitespace-only.
EmptyTitle
The learning title field is empty or whitespace-only.
EmptyTimestamp
The learning timestamp field is empty or whitespace-only.
Deserialize(Error)
JSON deserialization failed.
Trait Implementations§
Source§impl Debug for MessageError
impl Debug for MessageError
Source§impl Display for MessageError
impl Display for MessageError
Source§impl Error for MessageError
impl Error for MessageError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for MessageError
impl !UnwindSafe for MessageError
impl Freeze for MessageError
impl Send for MessageError
impl Sync for MessageError
impl Unpin for MessageError
impl UnsafeUnpin for MessageError
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more