#[non_exhaustive]pub enum MessagePartsError {
Empty,
TooMany {
max: usize,
actual: usize,
},
InlinePayloadTooLarge {
max: usize,
actual: usize,
},
}Expand description
Validation failure for MessageParts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
No content part was supplied.
TooMany
Too many content parts were supplied.
Fields
InlinePayloadTooLarge
Aggregate materialized inline payload exceeded the v1 hard ceiling.
Trait Implementations§
Source§impl Clone for MessagePartsError
impl Clone for MessagePartsError
Source§impl Debug for MessagePartsError
impl Debug for MessagePartsError
Source§impl Display for MessagePartsError
impl Display for MessagePartsError
impl Eq for MessagePartsError
Source§impl Error for MessagePartsError
impl Error for MessagePartsError
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 MessagePartsError
impl PartialEq for MessagePartsError
impl StructuralPartialEq for MessagePartsError
Auto Trait Implementations§
impl Forget for MessagePartsError
impl Freeze for MessagePartsError
impl Move for MessagePartsError
impl RefUnwindSafe for MessagePartsError
impl Send for MessagePartsError
impl Sync for MessagePartsError
impl Unpin for MessagePartsError
impl UnsafeUnpin for MessagePartsError
impl UnwindSafe for MessagePartsError
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