pub struct EnginePresentedUseResponseV1 {
pub schema_version: u32,
pub presenter_ref: String,
pub usable: bool,
pub reason: Option<String>,
pub source_ids: Vec<String>,
pub recovery_id: Option<String>,
pub content: Option<String>,
}Expand description
Answer of context-presented-use. usable: false carries a content-free
reason and nothing else; source ids, recovery id and text are present
only when usable.
Fields§
§schema_version: u32§presenter_ref: StringContent-free reference of the presenter entry that asked.
usable: bool§reason: Option<String>§source_ids: Vec<String>Ids of the caller-supplied sources the text derives from, sorted.
recovery_id: Option<String>§content: Option<String>Implementations§
Source§impl EnginePresentedUseResponseV1
impl EnginePresentedUseResponseV1
Sourcepub fn validate_for(
&self,
asked: &EnginePresentedUseV1,
) -> Result<(), ValidationError>
pub fn validate_for( &self, asked: &EnginePresentedUseV1, ) -> Result<(), ValidationError>
Validate the form of this answer as an answer to asked: text comes
back for expand only, a recovery id for retain and expand, and a
refusal carries its reason and nothing else. Form only: whether the
answer is by the presenter that asked, and free of its capability, is
for the caller that holds both.
Trait Implementations§
Source§impl Clone for EnginePresentedUseResponseV1
impl Clone for EnginePresentedUseResponseV1
Source§impl Debug for EnginePresentedUseResponseV1
impl Debug for EnginePresentedUseResponseV1
Source§impl<'de> Deserialize<'de> for EnginePresentedUseResponseV1
impl<'de> Deserialize<'de> for EnginePresentedUseResponseV1
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 EnginePresentedUseResponseV1
impl StructuralPartialEq for EnginePresentedUseResponseV1
Auto Trait Implementations§
impl Forget for EnginePresentedUseResponseV1
impl Freeze for EnginePresentedUseResponseV1
impl Move for EnginePresentedUseResponseV1
impl RefUnwindSafe for EnginePresentedUseResponseV1
impl Send for EnginePresentedUseResponseV1
impl Sync for EnginePresentedUseResponseV1
impl Unpin for EnginePresentedUseResponseV1
impl UnsafeUnpin for EnginePresentedUseResponseV1
impl UnwindSafe for EnginePresentedUseResponseV1
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