pub struct OperationCall<'sdk, T: Transport + Clone> { /* private fields */ }Expand description
Generated operation entrypoint bound to a specific SDK instance.
§Associated Types
The transport type T flows through the entire call chain, ensuring
type safety from SDK construction through request execution.
Implementations§
Source§impl<T: Transport + Clone> OperationCall<'_, T>
impl<T: Transport + Clone> OperationCall<'_, T>
Sourcepub const fn descriptor(&self) -> &'static GeneratedOperationDescriptor
pub const fn descriptor(&self) -> &'static GeneratedOperationDescriptor
Access the generated descriptor for this operation.
Sourcepub fn to_request(&self, input: OperationInput) -> Result<SdkRequest, SdkError>
pub fn to_request(&self, input: OperationInput) -> Result<SdkRequest, SdkError>
Build a canonical SDK request for this generated operation.
Sourcepub fn execute(
&self,
input: OperationInput,
) -> Pin<Box<dyn Future<Output = Result<SdkResponse, SdkError>> + Send + '_>>
pub fn execute( &self, input: OperationInput, ) -> Pin<Box<dyn Future<Output = Result<SdkResponse, SdkError>> + Send + '_>>
Execute this operation through the SDK transport.
Sourcepub fn execute_decoded(
&self,
input: OperationInput,
) -> Pin<Box<dyn Future<Output = Result<DecodedResponse, SdkError>> + Send + '_>>
pub fn execute_decoded( &self, input: OperationInput, ) -> Pin<Box<dyn Future<Output = Result<DecodedResponse, SdkError>> + Send + '_>>
Execute this operation and decode the documented response payload.
Trait Implementations§
Source§impl<'sdk, T: Clone + Transport + Clone> Clone for OperationCall<'sdk, T>
impl<'sdk, T: Clone + Transport + Clone> Clone for OperationCall<'sdk, T>
Source§fn clone(&self) -> OperationCall<'sdk, T>
fn clone(&self) -> OperationCall<'sdk, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'sdk, T: Copy + Transport + Clone> Copy for OperationCall<'sdk, T>
Auto Trait Implementations§
impl<'sdk, T> Freeze for OperationCall<'sdk, T>
impl<'sdk, T> RefUnwindSafe for OperationCall<'sdk, T>where
T: RefUnwindSafe,
impl<'sdk, T> Send for OperationCall<'sdk, T>
impl<'sdk, T> Sync for OperationCall<'sdk, T>
impl<'sdk, T> Unpin for OperationCall<'sdk, T>
impl<'sdk, T> UnsafeUnpin for OperationCall<'sdk, T>
impl<'sdk, T> UnwindSafe for OperationCall<'sdk, T>where
T: RefUnwindSafe,
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