pub enum InputConfig {
Requests(RequestsContainer),
FileName(String),
}
Expand description
Input configuration for batch requests
Variants§
Requests(RequestsContainer)
The requests to be processed in the batch.
FileName(String)
The name of the File containing the input requests.
Implementations§
Source§impl InputConfig
impl InputConfig
Sourcepub fn batch_size(&self) -> Option<usize>
pub fn batch_size(&self) -> Option<usize>
Returns the batch size of the input configuration.
Returns None
if the input configuration is a file name.
Trait Implementations§
Source§impl Clone for InputConfig
impl Clone for InputConfig
Source§fn clone(&self) -> InputConfig
fn clone(&self) -> InputConfig
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 moreSource§impl Debug for InputConfig
impl Debug for InputConfig
Source§impl<'de> Deserialize<'de> for InputConfig
impl<'de> Deserialize<'de> for InputConfig
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 InputConfig
impl RefUnwindSafe for InputConfig
impl Send for InputConfig
impl Sync for InputConfig
impl Unpin for InputConfig
impl UnwindSafe for InputConfig
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