#[non_exhaustive]pub enum TextFieldsErrorType {
NameTooShort {
name: String,
},
NameTooLong {
name: String,
},
RateLimitInvalid {
limit: u16,
},
TopicTooLong {
topic: String,
},
}
Expand description
Type of TextFieldsError
that occurred.
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.
NameTooShort
The name is too short.
NameTooLong
The name is too long.
RateLimitInvalid
The rate limit is invalid.
TopicTooLong
The topic is too long.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextFieldsErrorType
impl RefUnwindSafe for TextFieldsErrorType
impl Send for TextFieldsErrorType
impl Sync for TextFieldsErrorType
impl Unpin for TextFieldsErrorType
impl UnwindSafe for TextFieldsErrorType
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