Enum sqrl_protocol::client_request::ServerData
source · pub enum ServerData {
Url {
url: SqrlUrl,
},
ServerResponse {
server_response: ServerResponse,
original_response: String,
},
}Expand description
The previous server response to add to the next client request, or the SQRL url for the first request
Variants§
Url
During the first request sent to a server, the server data is set as the first SQRL protocol url used to auth against the server
ServerResponse
Any request after the first one includes the server response to the previous client request
Fields
§
server_response: ServerResponseThe parsed previous response to the client’s request
Implementations§
Trait Implementations§
source§impl Debug for ServerData
impl Debug for ServerData
source§impl Display for ServerData
impl Display for ServerData
source§impl PartialEq for ServerData
impl PartialEq for ServerData
source§fn eq(&self, other: &ServerData) -> bool
fn eq(&self, other: &ServerData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ServerData
Auto Trait Implementations§
impl Freeze for ServerData
impl RefUnwindSafe for ServerData
impl Send for ServerData
impl Sync for ServerData
impl Unpin for ServerData
impl UnwindSafe for ServerData
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