pub struct Error {
pub code: i32,
pub text: String,
}Expand description
Generated from the following TL definition:
error#c4b9f9bb code:int text:string = ErrorFields§
§code: i32§text: StringTrait Implementations§
Source§impl Deserializable for Error
impl Deserializable for Error
Source§impl Identifiable for Error
impl Identifiable for Error
Source§const CONSTRUCTOR_ID: u32 = 3300522427
const CONSTRUCTOR_ID: u32 = 3300522427
The unique identifier for the type.
Source§impl Serializable for Error
impl Serializable for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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