pub struct ChannelStateTool {
pub snapshot_id: Option<i64>,
pub entity_id: Option<String>,
}Fields§
§snapshot_id: Option<i64>§entity_id: Option<String>Implementations§
Source§impl ChannelStateTool
impl ChannelStateTool
Sourcepub fn request_params() -> CallToolRequestParams
pub fn request_params() -> CallToolRequestParams
Returns a CallToolRequestParams initialized with the current tool’s name.
You can further customize the request by adding arguments or other attributes using the builder pattern. For example:
ⓘ
let args = serde_json::Map::new();
let task_meta = TaskMetadata{ttl: Some(200)}
let params: CallToolRequestParams = MyTool::request_params()
.with_arguments(args)
.with_task(task_meta);§Returns
A CallToolRequestParams with the tool name set.
Source§impl ChannelStateTool
impl ChannelStateTool
pub fn json_schema() -> Map<String, Value>
Trait Implementations§
Source§impl Debug for ChannelStateTool
impl Debug for ChannelStateTool
Source§impl<'de> Deserialize<'de> for ChannelStateTool
impl<'de> Deserialize<'de> for ChannelStateTool
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
Auto Trait Implementations§
impl Freeze for ChannelStateTool
impl RefUnwindSafe for ChannelStateTool
impl Send for ChannelStateTool
impl Sync for ChannelStateTool
impl Unpin for ChannelStateTool
impl UnsafeUnpin for ChannelStateTool
impl UnwindSafe for ChannelStateTool
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