pub struct BackgroundBatchInput {
pub file_id: FileId,
pub endpoint: String,
pub metadata: Option<Value>,
pub created_by: Option<String>,
pub api_key_id: Option<Uuid>,
pub api_key: Option<String>,
pub total_requests: Option<i64>,
}Expand description
Input parameters for creating a file-backed background batch.
Background batches deliberately have no completion window. They use the ordinary batch lifecycle but are dispatched only by the background daemon.
Fields§
§file_id: FileIdThe file containing request templates.
endpoint: StringThe API endpoint to use for all requests.
metadata: Option<Value>Optional metadata key-value pairs.
created_by: Option<String>User who created this batch.
api_key_id: Option<Uuid>API key UUID that created this batch.
api_key: Option<String>API key secret for batch request execution.
total_requests: Option<i64>Expected number of request templates in the source file.
Trait Implementations§
Source§impl Clone for BackgroundBatchInput
impl Clone for BackgroundBatchInput
Source§fn clone(&self) -> BackgroundBatchInput
fn clone(&self) -> BackgroundBatchInput
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 BackgroundBatchInput
impl Debug for BackgroundBatchInput
Source§impl<'de> Deserialize<'de> for BackgroundBatchInput
impl<'de> Deserialize<'de> for BackgroundBatchInput
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 BackgroundBatchInput
impl RefUnwindSafe for BackgroundBatchInput
impl Send for BackgroundBatchInput
impl Sync for BackgroundBatchInput
impl Unpin for BackgroundBatchInput
impl UnsafeUnpin for BackgroundBatchInput
impl UnwindSafe for BackgroundBatchInput
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