pub struct StructuredPayload { /* private fields */ }Implementations§
Source§impl StructuredPayload
impl StructuredPayload
pub fn new(schema: SchemaHandle, value: Value) -> Self
pub fn schema(&self) -> &SchemaHandle
pub fn value(&self) -> &Value
pub fn into_inner(self) -> (SchemaHandle, Value)
pub fn deserialize<T>(&self) -> Result<T>where
T: CompletionSchema,
Trait Implementations§
Source§impl Clone for StructuredPayload
impl Clone for StructuredPayload
Auto Trait Implementations§
impl Freeze for StructuredPayload
impl RefUnwindSafe for StructuredPayload
impl Send for StructuredPayload
impl Sync for StructuredPayload
impl Unpin for StructuredPayload
impl UnsafeUnpin for StructuredPayload
impl UnwindSafe for StructuredPayload
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