pub struct PromptParams {
pub name: String,
pub profile: String,
pub target_provider: Option<String>,
}Expand description
Everything the person answering needs, and nothing else.
There is no free-form message: the text a client shows is built by the client from these fields, so a server cannot use the prompt to put arbitrary attacker-influenced text in front of a person. The declared name and the credential-free provider URI are already known to the session that asked.
Fields§
§name: StringThe declared name whose value is being asked for.
profile: StringThe active profile, so a person answering can tell which one they are provisioning.
target_provider: Option<String>Credential-free display URI of the provider that will store the answer, or absent when the answer is not persisted.
Implementations§
Trait Implementations§
Source§impl Clone for PromptParams
impl Clone for PromptParams
Source§impl Debug for PromptParams
impl Debug for PromptParams
Source§impl<'de> Deserialize<'de> for PromptParams
impl<'de> Deserialize<'de> for PromptParams
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 PromptParams
Source§impl PartialEq for PromptParams
impl PartialEq for PromptParams
Source§impl Serialize for PromptParams
impl Serialize for PromptParams
impl StructuralPartialEq for PromptParams
Auto Trait Implementations§
impl Freeze for PromptParams
impl RefUnwindSafe for PromptParams
impl Send for PromptParams
impl Sync for PromptParams
impl Unpin for PromptParams
impl UnsafeUnpin for PromptParams
impl UnwindSafe for PromptParams
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