pub struct CreateBatchRequest {
pub input_file_id: String,
pub endpoint: String,
pub completion_window: String,
pub metadata: Option<BTreeMap<String, String>>,
pub output_expires_after: Option<BatchExpiresAfter>,
}Expand description
Create a batch from an uploaded JSONL input. Use Self::new for native defaults.
Fields§
§input_file_id: StringUploaded input file.
endpoint: StringOnly /v1/basal is currently supported.
completion_window: StringOnly 24h is currently supported; this is an expiry window, not a completion guarantee.
metadata: Option<BTreeMap<String, String>>Up to 16 string pairs; server validates key/value limits.
output_expires_after: Option<BatchExpiresAfter>Optional result-file retention.
Implementations§
Trait Implementations§
Source§impl Clone for CreateBatchRequest
impl Clone for CreateBatchRequest
Source§impl Debug for CreateBatchRequest
impl Debug for CreateBatchRequest
Source§impl<'de> Deserialize<'de> for CreateBatchRequest
impl<'de> Deserialize<'de> for CreateBatchRequest
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
Source§impl<'a> From<&'a CreateBatchRequest> for BatchCreateInput<'a>
impl<'a> From<&'a CreateBatchRequest> for BatchCreateInput<'a>
Source§fn from(value: &'a CreateBatchRequest) -> Self
fn from(value: &'a CreateBatchRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateBatchRequest
impl RefUnwindSafe for CreateBatchRequest
impl Send for CreateBatchRequest
impl Sync for CreateBatchRequest
impl Unpin for CreateBatchRequest
impl UnsafeUnpin for CreateBatchRequest
impl UnwindSafe for CreateBatchRequest
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