pub struct BatchCreateRequestBuilder { /* private fields */ }Expand description
表示 batch 创建构建器。
Implementations§
Source§impl BatchCreateRequestBuilder
impl BatchCreateRequestBuilder
pub fn input_file_id(self, input_file_id: impl Into<String>) -> Self
pub fn endpoint(self, endpoint: impl Into<String>) -> Self
pub fn completion_window(self, completion_window: impl Into<String>) -> Self
pub fn metadata(self, metadata: BTreeMap<String, String>) -> Self
pub fn params(self, params: BatchCreateParams) -> Self
pub fn body_value(self, body: impl Into<JsonPayload>) -> Self
pub fn json_body<U>(self, body: &U) -> Result<Self>where
U: Serialize,
pub fn extra_header( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn extra_query( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn extra_body( self, key: impl Into<String>, value: impl Into<JsonPayload>, ) -> Self
pub fn provider_option( self, key: impl Into<String>, value: impl Into<JsonPayload>, ) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn max_retries(self, max_retries: u32) -> Self
pub fn cancellation_token(self, token: CancellationToken) -> Self
pub async fn send(self) -> Result<Batch>
pub async fn send_with_meta(self) -> Result<ApiResponse<Batch>>
pub async fn send_raw(self) -> Result<Response<Bytes>>
Trait Implementations§
Source§impl Clone for BatchCreateRequestBuilder
impl Clone for BatchCreateRequestBuilder
Source§fn clone(&self) -> BatchCreateRequestBuilder
fn clone(&self) -> BatchCreateRequestBuilder
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 moreAuto Trait Implementations§
impl Freeze for BatchCreateRequestBuilder
impl !RefUnwindSafe for BatchCreateRequestBuilder
impl Send for BatchCreateRequestBuilder
impl Sync for BatchCreateRequestBuilder
impl Unpin for BatchCreateRequestBuilder
impl UnsafeUnpin for BatchCreateRequestBuilder
impl !UnwindSafe for BatchCreateRequestBuilder
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