pub enum AuthPrompt {
Text {
message: String,
placeholder: Option<String>,
},
Secret {
message: String,
},
Select {
message: String,
options: Vec<SelectOption>,
},
ManualCode {
message: String,
placeholder: Option<String>,
},
}Expand description
A question a sign-in asks, deserialized from pi’s AuthPrompt JSON.
Variants§
Text
Free text.
Secret
Text that must not be echoed, such as a key.
Select
One of several options. The answer is the option id.
ManualCode
A pasted authorization code or redirect URL. A sign-in may withdraw it when the browser callback arrives first.
Trait Implementations§
Source§impl Clone for AuthPrompt
impl Clone for AuthPrompt
Source§impl Debug for AuthPrompt
impl Debug for AuthPrompt
Source§impl<'de> Deserialize<'de> for AuthPrompt
impl<'de> Deserialize<'de> for AuthPrompt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AuthPrompt
Source§impl PartialEq for AuthPrompt
impl PartialEq for AuthPrompt
impl StructuralPartialEq for AuthPrompt
Auto Trait Implementations§
impl Freeze for AuthPrompt
impl RefUnwindSafe for AuthPrompt
impl Send for AuthPrompt
impl Sync for AuthPrompt
impl Unpin for AuthPrompt
impl UnsafeUnpin for AuthPrompt
impl UnwindSafe for AuthPrompt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.