#[non_exhaustive]pub struct TaskCreationParams {
pub ttl: Option<u64>,
pub poll_interval: Option<u64>,
}Expand description
Parameters for task creation (augments tools/call).
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.ttl: Option<u64>Time-to-live in milliseconds. Required but nullable per MCP spec:
None serializes as null (unlimited TTL), Some(ms) as a number.
poll_interval: Option<u64>Suggested polling interval in milliseconds
Implementations§
Trait Implementations§
Source§impl Clone for TaskCreationParams
impl Clone for TaskCreationParams
Source§fn clone(&self) -> TaskCreationParams
fn clone(&self) -> TaskCreationParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskCreationParams
impl Debug for TaskCreationParams
Source§impl Default for TaskCreationParams
impl Default for TaskCreationParams
Source§fn default() -> TaskCreationParams
fn default() -> TaskCreationParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaskCreationParams
impl<'de> Deserialize<'de> for TaskCreationParams
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 TaskCreationParams
impl RefUnwindSafe for TaskCreationParams
impl Send for TaskCreationParams
impl Sync for TaskCreationParams
impl Unpin for TaskCreationParams
impl UnsafeUnpin for TaskCreationParams
impl UnwindSafe for TaskCreationParams
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