#[non_exhaustive]pub struct CustomTool {
pub async_: Option<bool>,
pub name: String,
pub description: Option<String>,
pub format: Option<CustomToolFormat>,
pub allowed_callers: Option<Option<Vec<AllowedCaller>>>,
pub defer_loading: Option<bool>,
pub rest: Rest,
}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.async_: Option<bool>§name: String§description: Option<String>§format: Option<CustomToolFormat>§allowed_callers: Option<Option<Vec<AllowedCaller>>>§defer_loading: Option<bool>§rest: RestImplementations§
Source§impl CustomTool
impl CustomTool
Sourcepub fn builder(name: String) -> CustomToolBuilder
pub fn builder(name: String) -> CustomToolBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for CustomTool
impl Clone for CustomTool
Source§impl Debug for CustomTool
impl Debug for CustomTool
Source§impl DeclaredFields for CustomTool
impl DeclaredFields for CustomTool
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for CustomTool
impl<'de> Deserialize<'de> for CustomTool
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 CustomTool
Source§impl PartialEq for CustomTool
impl PartialEq for CustomTool
Source§impl Serialize for CustomTool
impl Serialize for CustomTool
impl StructuralPartialEq for CustomTool
Auto Trait Implementations§
impl Freeze for CustomTool
impl RefUnwindSafe for CustomTool
impl Send for CustomTool
impl Sync for CustomTool
impl Unpin for CustomTool
impl UnsafeUnpin for CustomTool
impl UnwindSafe for CustomTool
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