pub struct EnginePresentedUseRequestV1 {
pub schema_version: u32,
pub authorized_source_ids: Option<Vec<SourceId>>,
pub operation: EnginePresentedUseV1,
}Expand description
Request of context-presented-use.
Fields§
§schema_version: u32The source constraint: the ids of EXACTLY the sources the sender has authorized this request for. Set equality, not inclusion — a lineage with fewer sources belongs to another text than the one the sender authorized, and a lineage with more derives from a source nobody authorized for this request. Absent: no additional constraint (a local host without an authorizing caller in front of the Engine).
operation: EnginePresentedUseV1Implementations§
Source§impl EnginePresentedUseRequestV1
impl EnginePresentedUseRequestV1
Sourcepub fn validate_payload(&self) -> Result<(), ValidationError>
pub fn validate_payload(&self) -> Result<(), ValidationError>
Validate the envelope, the constraint (a non-empty, bounded set of distinct ids) and the form of what is asked.
Trait Implementations§
Source§impl Clone for EnginePresentedUseRequestV1
impl Clone for EnginePresentedUseRequestV1
Source§impl Debug for EnginePresentedUseRequestV1
impl Debug for EnginePresentedUseRequestV1
Source§impl<'de> Deserialize<'de> for EnginePresentedUseRequestV1
impl<'de> Deserialize<'de> for EnginePresentedUseRequestV1
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 EnginePresentedUseRequestV1
impl StructuralPartialEq for EnginePresentedUseRequestV1
Auto Trait Implementations§
impl Freeze for EnginePresentedUseRequestV1
impl RefUnwindSafe for EnginePresentedUseRequestV1
impl Send for EnginePresentedUseRequestV1
impl Sync for EnginePresentedUseRequestV1
impl Unpin for EnginePresentedUseRequestV1
impl UnsafeUnpin for EnginePresentedUseRequestV1
impl UnwindSafe for EnginePresentedUseRequestV1
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