pub struct Args(/* private fields */);Expand description
Tool arguments as CBOR bytes.
Implementations§
Source§impl Args
impl Args
Sourcepub fn from_json_opt(value: &Option<Value>) -> Result<Option<Self>, CborError>
pub fn from_json_opt(value: &Option<Value>) -> Result<Option<Self>, CborError>
Convert from an optional JSON value.
Sourcepub fn deserialize<T: DeserializeOwned>(&self) -> Result<T, CborError>
pub fn deserialize<T: DeserializeOwned>(&self) -> Result<T, CborError>
Deserialize into a typed value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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