pub fn validate_collection_upload_options(
opts: Option<&CollectionUploadOptions>,
) -> Result<(), Error>Expand description
Validate that the user-controlled string fields of
CollectionUploadOptions (index_document, error_document)
don’t contain CR / LF / NUL bytes. reqwest itself rejects these at
request-build time, but the resulting error is a generic
InvalidHeaderValue deep in the I/O path; surfacing it early as
[Error::Argument] is cleaner.