pub struct A2aGetTaskRequest { /* private fields */ }Expand description
A validated task lookup request.
Implementations§
Source§impl A2aGetTaskRequest
impl A2aGetTaskRequest
Sourcepub fn new(id: impl Into<String>) -> Result<Self, A2aContractError>
pub fn new(id: impl Into<String>) -> Result<Self, A2aContractError>
Constructs a lookup request.
Sourcepub fn with_history_length(self, length: u32) -> Result<Self, A2aContractError>
pub fn with_history_length(self, length: u32) -> Result<Self, A2aContractError>
Selects a bounded history suffix.
Sourcepub const fn history_length(&self) -> Option<u32>
pub const fn history_length(&self) -> Option<u32>
Returns the requested history length.
Trait Implementations§
Source§impl Clone for A2aGetTaskRequest
impl Clone for A2aGetTaskRequest
Source§impl Debug for A2aGetTaskRequest
impl Debug for A2aGetTaskRequest
impl Eq for A2aGetTaskRequest
Source§impl PartialEq for A2aGetTaskRequest
impl PartialEq for A2aGetTaskRequest
impl StructuralPartialEq for A2aGetTaskRequest
Auto Trait Implementations§
impl Forget for A2aGetTaskRequest
impl Freeze for A2aGetTaskRequest
impl Move for A2aGetTaskRequest
impl RefUnwindSafe for A2aGetTaskRequest
impl Send for A2aGetTaskRequest
impl Sync for A2aGetTaskRequest
impl Unpin for A2aGetTaskRequest
impl UnsafeUnpin for A2aGetTaskRequest
impl UnwindSafe for A2aGetTaskRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request