pub struct CreateBatchFromRequests<'a> {
pub requests: &'a [BatchInputLine],
pub metadata: Option<BTreeMap<String, String>>,
pub output_expires_after: Option<BatchExpiresAfter>,
}Expand description
A simplified create request. The SDK serializes and uploads these records before creating the batch. JSONL is buffered in memory, limited to 50,000 records and 200 MB; the upload adds a multipart copy.
Fields§
§requests: &'a [BatchInputLine]Native requests and unique caller identifiers.
metadata: Option<BTreeMap<String, String>>Optional owner metadata.
output_expires_after: Option<BatchExpiresAfter>Optional output and error file retention.
Implementations§
Source§impl<'a> CreateBatchFromRequests<'a>
impl<'a> CreateBatchFromRequests<'a>
Sourcepub fn new(requests: &'a [BatchInputLine]) -> Self
pub fn new(requests: &'a [BatchInputLine]) -> Self
Prepare native /v1/basal records with the server’s 24-hour expiry window.
Trait Implementations§
Source§impl<'a> From<&'a CreateBatchFromRequests<'a>> for BatchCreateInput<'a>
impl<'a> From<&'a CreateBatchFromRequests<'a>> for BatchCreateInput<'a>
Source§fn from(value: &'a CreateBatchFromRequests<'a>) -> Self
fn from(value: &'a CreateBatchFromRequests<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for CreateBatchFromRequests<'a>
impl<'a> RefUnwindSafe for CreateBatchFromRequests<'a>
impl<'a> Send for CreateBatchFromRequests<'a>
impl<'a> Sync for CreateBatchFromRequests<'a>
impl<'a> Unpin for CreateBatchFromRequests<'a>
impl<'a> UnsafeUnpin for CreateBatchFromRequests<'a>
impl<'a> UnwindSafe for CreateBatchFromRequests<'a>
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