#[repr(i32)]pub enum Request {
Show 15 variants
Init = 0,
InitAuthenticatedSession = 1,
AuthenticationAssurance = 2,
EnvelopeId = 3,
MessageVaultId = 4,
AddMessageVault = 5,
AddEnvelope = 6,
RemoveEnvelopeIdHint = 7,
ListEnvelopeIds = 8,
ReachablePublicKeyRing = 9,
RemoveReachablePublicKeys = 10,
GetSharedSecretKeys = 11,
AddSharedSecretKeys = 12,
ReachableVerifyingKeys = 13,
RemoveVerifyingKeys = 14,
}Variants§
Init = 0
InitAuthenticatedSession = 1
AuthenticationAssurance = 2
EnvelopeId = 3
MessageVaultId = 4
AddMessageVault = 5
AddEnvelope = 6
RemoveEnvelopeIdHint = 7
ListEnvelopeIds = 8
ReachablePublicKeyRing = 9
RemoveReachablePublicKeys = 10
ReachableVerifyingKeys = 13
RemoveVerifyingKeys = 14
Implementations§
Source§impl Request
impl Request
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Communicable<Request> for Init
impl Communicable<Request> for Init
fn to_communication(&self) -> Communication<Request>
fn try_from_communication( communication: &Communication<Request>, ) -> Result<Self, DecodeError>
Source§impl Communicable<Request> for InitAuthenticatedSession
impl Communicable<Request> for InitAuthenticatedSession
fn to_communication(&self) -> Communication<Request>
fn try_from_communication( communication: &Communication<Request>, ) -> Result<Self, DecodeError>
Source§impl Ord for Request
impl Ord for Request
Source§impl PartialOrd for Request
impl PartialOrd for Request
Source§impl ProstCommunicable<Request> for AuthenticationAssurance
impl ProstCommunicable<Request> for AuthenticationAssurance
const COMMUNICATION_VARIANT: Request = Request::AuthenticationAssurance
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for EnvelopeId
impl ProstCommunicable<Request> for EnvelopeId
const COMMUNICATION_VARIANT: Request = Request::EnvelopeId
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for EnvelopeSeed
impl ProstCommunicable<Request> for EnvelopeSeed
const COMMUNICATION_VARIANT: Request = Request::AddEnvelope
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for MessageVaultId
impl ProstCommunicable<Request> for MessageVaultId
const COMMUNICATION_VARIANT: Request = Request::MessageVaultId
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for MessageVaultSeed
impl ProstCommunicable<Request> for MessageVaultSeed
const COMMUNICATION_VARIANT: Request = Request::AddMessageVault
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for ReachablePublicKeyRing
impl ProstCommunicable<Request> for ReachablePublicKeyRing
const COMMUNICATION_VARIANT: ReachRequest = ReachRequest::ReachablePublicKeyRing
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for ReachableVerifyingKeys
impl ProstCommunicable<Request> for ReachableVerifyingKeys
const COMMUNICATION_VARIANT: Request = Request::ReachableVerifyingKeys
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for RemoveEnvelopeIdHint
impl ProstCommunicable<Request> for RemoveEnvelopeIdHint
const COMMUNICATION_VARIANT: Request = Request::RemoveEnvelopeIdHint
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstCommunicable<Request> for RemoveReachablePublicKeys
impl ProstCommunicable<Request> for RemoveReachablePublicKeys
const COMMUNICATION_VARIANT: Request = Request::RemoveReachablePublicKeys
fn to_communication_via_prost(&self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
impl CommunicableType for Request
impl Copy for Request
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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