pub enum PermissionReplyResponse {
Once,
Always,
Reject,
Unknown(String),
}Expand description
Decision sent when replying to a permission request
(POST /session/{sessionID}/permissions/{permissionID}). The wire schema
pins this to once / always / reject; the Unknown
fallback preserves forward compatibility with newer server values.
Variants§
Once
Grant the permission for this request only.
Always
Grant the permission and remember the decision.
Reject
Deny the permission.
Unknown(String)
A value not known to this crate version.
Implementations§
Trait Implementations§
Source§impl Clone for PermissionReplyResponse
impl Clone for PermissionReplyResponse
Source§fn clone(&self) -> PermissionReplyResponse
fn clone(&self) -> PermissionReplyResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PermissionReplyResponse
impl Debug for PermissionReplyResponse
Source§impl<'de> Deserialize<'de> for PermissionReplyResponse
impl<'de> Deserialize<'de> for PermissionReplyResponse
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PermissionReplyResponse
impl Display for PermissionReplyResponse
impl Eq for PermissionReplyResponse
Source§impl From<&str> for PermissionReplyResponse
impl From<&str> for PermissionReplyResponse
Source§impl Hash for PermissionReplyResponse
impl Hash for PermissionReplyResponse
Source§impl PartialEq for PermissionReplyResponse
impl PartialEq for PermissionReplyResponse
Source§impl Serialize for PermissionReplyResponse
impl Serialize for PermissionReplyResponse
impl StructuralPartialEq for PermissionReplyResponse
Auto Trait Implementations§
impl Freeze for PermissionReplyResponse
impl RefUnwindSafe for PermissionReplyResponse
impl Send for PermissionReplyResponse
impl Sync for PermissionReplyResponse
impl Unpin for PermissionReplyResponse
impl UnsafeUnpin for PermissionReplyResponse
impl UnwindSafe for PermissionReplyResponse
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