pub struct BatchInputLine {
pub custom_id: String,
pub method: String,
pub url: String,
pub body: DecisionRequest,
}Expand description
One JSONL input record. Serialize each record followed by LF; upload exact bytes if already encoded.
Fields§
§custom_id: StringCaller id, unique within the file.
method: StringPOST.
url: String/v1/basal.
body: DecisionRequestNative request body.
Implementations§
Source§impl BatchInputLine
impl BatchInputLine
Sourcepub fn new(custom_id: impl Into<String>, body: DecisionRequest) -> Self
pub fn new(custom_id: impl Into<String>, body: DecisionRequest) -> Self
Wrap a native request for a JSONL batch input.
Trait Implementations§
Source§impl Clone for BatchInputLine
impl Clone for BatchInputLine
Source§impl Debug for BatchInputLine
impl Debug for BatchInputLine
Source§impl<'de> Deserialize<'de> for BatchInputLine
impl<'de> Deserialize<'de> for BatchInputLine
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 BatchInputLine
impl RefUnwindSafe for BatchInputLine
impl Send for BatchInputLine
impl Sync for BatchInputLine
impl Unpin for BatchInputLine
impl UnsafeUnpin for BatchInputLine
impl UnwindSafe for BatchInputLine
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