pub struct Response {
pub status: u16,
pub body: String,
}Fields§
§status: u16§body: StringImplementations§
Source§impl Response
impl Response
pub fn is_success(&self) -> bool
Sourcepub fn error(&self) -> Option<ServerError>
pub fn error(&self) -> Option<ServerError>
What a status other than success means, with the message the sync server gave for the user when it gave one; None on success.
Auto Trait Implementations§
impl Forget for Response
impl Freeze for Response
impl Move for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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