pub struct ClientParameters {
pub protocol_version: ProtocolVersion,
pub command: ClientCommand,
pub identity_key: VerifyingKey,
pub options: Option<Vec<ClientOption>>,
pub button: Option<u8>,
pub previous_identity_key: Option<VerifyingKey>,
pub index_secret: Option<String>,
pub previous_index_secret: Option<String>,
pub server_unlock_key: Option<String>,
pub verify_unlock_key: Option<String>,
}
Expand description
Parameters used for sending requests to the client
Fields§
§protocol_version: ProtocolVersion
The supported protocol versions of the client (ver)
command: ClientCommand
The client command requested to be performed (cmd)
identity_key: VerifyingKey
The client identity used to sign the request (idk)
options: Option<Vec<ClientOption>>
Optional options requested by the client (opt)
The button pressed in response to a server query (btn)
previous_identity_key: Option<VerifyingKey>
A previous client identity used to sign the request (pidk)
index_secret: Option<String>
The current identity indexed secret in response to a server query (ins)
previous_index_secret: Option<String>
The previous identity indexed secret in response to a server query (pins)
server_unlock_key: Option<String>
The server unlock key used for unlocking an identity (suk)
verify_unlock_key: Option<String>
The verify unlock key used for unlocking an identity (vuk)
Implementations§
Source§impl ClientParameters
impl ClientParameters
Sourcepub fn new(
command: ClientCommand,
identity_key: VerifyingKey,
) -> ClientParameters
pub fn new( command: ClientCommand, identity_key: VerifyingKey, ) -> ClientParameters
Create a new client parameter using the command and verifying key
Sourcepub fn from_base64(base64_string: &str) -> Result<Self>
pub fn from_base64(base64_string: &str) -> Result<Self>
Parse a base64-encoded client parameter value
Trait Implementations§
Source§impl Debug for ClientParameters
impl Debug for ClientParameters
Source§impl Display for ClientParameters
impl Display for ClientParameters
Source§impl FromStr for ClientParameters
impl FromStr for ClientParameters
Source§impl PartialEq for ClientParameters
impl PartialEq for ClientParameters
impl StructuralPartialEq for ClientParameters
Auto Trait Implementations§
impl Freeze for ClientParameters
impl RefUnwindSafe for ClientParameters
impl Send for ClientParameters
impl Sync for ClientParameters
impl Unpin for ClientParameters
impl UnwindSafe for ClientParameters
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