pub struct ServerResponse {
pub protocol_version: ProtocolVersion,
pub nut: String,
pub transaction_indication_flags: Vec<TIFValue>,
pub query_url: String,
pub success_url: Option<String>,
pub cancel_url: Option<String>,
pub secret_index: Option<String>,
pub server_unlock_key: Option<String>,
pub ask: Option<String>,
}
Expand description
An object representing a response from the server
Fields§
§protocol_version: ProtocolVersion
The SQRL protocol versions supported by the server (ver)
nut: String
The nut to be used for signing the next request (nut)
transaction_indication_flags: Vec<TIFValue>
A collection of transaction indication flags (tif)
query_url: String
The server object to query in the next request (qry)
success_url: Option<String>
If CPS set, the url to redirect the client’s browser to after successful authentication (url)
cancel_url: Option<String>
If CPS set, a url to use to cancel a user’s authentication (can)
secret_index: Option<String>
The secret index used for requesting a client to return an indexed secret (sin)
server_unlock_key: Option<String>
The server unlock key requested by the client (suk)
ask: Option<String>
A way for the server to request that the client display a prompt to the client user and return the selection (ask)
Implementations§
Source§impl ServerResponse
impl ServerResponse
Trait Implementations§
Source§impl Debug for ServerResponse
impl Debug for ServerResponse
Source§impl Display for ServerResponse
impl Display for ServerResponse
Source§impl FromStr for ServerResponse
impl FromStr for ServerResponse
Source§impl PartialEq for ServerResponse
impl PartialEq for ServerResponse
impl StructuralPartialEq for ServerResponse
Auto Trait Implementations§
impl Freeze for ServerResponse
impl RefUnwindSafe for ServerResponse
impl Send for ServerResponse
impl Sync for ServerResponse
impl Unpin for ServerResponse
impl UnwindSafe for ServerResponse
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