#[non_exhaustive]pub struct CallTraits {
pub read_only: bool,
pub concurrency_safe: bool,
pub destructive: bool,
}Expand description
What a tool says about one call: answered by Tool::call_traits, which
is handed the call’s input.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.read_only: bool§concurrency_safe: bool§destructive: boolImplementations§
Source§impl CallTraits
impl CallTraits
pub fn read_only(self, yes: bool) -> Self
pub fn concurrency_safe(self, yes: bool) -> Self
pub fn destructive(self, yes: bool) -> Self
Trait Implementations§
Source§impl Clone for CallTraits
impl Clone for CallTraits
impl Copy for CallTraits
Source§impl Debug for CallTraits
impl Debug for CallTraits
Source§impl Default for CallTraits
impl Default for CallTraits
impl Eq for CallTraits
Source§impl PartialEq for CallTraits
impl PartialEq for CallTraits
impl StructuralPartialEq for CallTraits
Auto Trait Implementations§
impl Forget for CallTraits
impl Freeze for CallTraits
impl Move for CallTraits
impl RefUnwindSafe for CallTraits
impl Send for CallTraits
impl Sync for CallTraits
impl Unpin for CallTraits
impl UnsafeUnpin for CallTraits
impl UnwindSafe for CallTraits
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