#[non_exhaustive]pub struct ToolSurface {
pub definitions: Vec<ToolDefinition>,
}Expand description
The tool definitions bound for one invocation: what the executor can
dispatch this round. A driver records a difference from the context’s
tool state as a crate::ToolChange block, and renderers read the tools
from the frame, never from this value.
Serializable for logs and tests; the serialized form is not part of the stable set and may change in any release.
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.definitions: Vec<ToolDefinition>Model-facing ToolDefinitions, in offer order.
Implementations§
Source§impl ToolSurface
impl ToolSurface
Sourcepub fn from_definitions(definitions: Vec<ToolDefinition>) -> Self
pub fn from_definitions(definitions: Vec<ToolDefinition>) -> Self
Builds a surface from the given definitions.
Trait Implementations§
Source§impl Clone for ToolSurface
impl Clone for ToolSurface
Source§impl Debug for ToolSurface
impl Debug for ToolSurface
Source§impl Default for ToolSurface
impl Default for ToolSurface
Source§impl<'de> Deserialize<'de> for ToolSurface
impl<'de> Deserialize<'de> for ToolSurface
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
Source§impl PartialEq for ToolSurface
impl PartialEq for ToolSurface
Source§impl Serialize for ToolSurface
impl Serialize for ToolSurface
impl StructuralPartialEq for ToolSurface
Auto Trait Implementations§
impl Forget for ToolSurface
impl Freeze for ToolSurface
impl Move for ToolSurface
impl RefUnwindSafe for ToolSurface
impl Send for ToolSurface
impl Sync for ToolSurface
impl Unpin for ToolSurface
impl UnsafeUnpin for ToolSurface
impl UnwindSafe for ToolSurface
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