pub struct UploadUrlDetail {
pub url: String,
pub knowledge_type: Option<i64>,
pub custom_separator: Option<Vec<String>>,
pub sentence_size: Option<u32>,
pub callback_url: Option<String>,
pub callback_header: Option<BTreeMap<String, String>>,
}Expand description
Single URL upload detail
Fields§
§url: StringSource URL to fetch
knowledge_type: Option<i64>Slice type (integer)
custom_separator: Option<Vec<String>>Custom separators
sentence_size: Option<u32>Sentence size
callback_url: Option<String>Callback URL
callback_header: Option<BTreeMap<String, String>>Callback headers
Implementations§
Source§impl UploadUrlDetail
impl UploadUrlDetail
pub fn new(url: impl Into<String>) -> Self
pub fn with_knowledge_type(self, t: i64) -> Self
pub fn with_custom_separator(self, seps: Vec<String>) -> Self
pub fn with_sentence_size(self, size: u32) -> Self
pub fn with_callback_url(self, url: impl Into<String>) -> Self
pub fn with_callback_header(self, headers: BTreeMap<String, String>) -> Self
Trait Implementations§
Source§impl Clone for UploadUrlDetail
impl Clone for UploadUrlDetail
Source§fn clone(&self) -> UploadUrlDetail
fn clone(&self) -> UploadUrlDetail
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 UploadUrlDetail
impl Debug for UploadUrlDetail
Source§impl<'de> Deserialize<'de> for UploadUrlDetail
impl<'de> Deserialize<'de> for UploadUrlDetail
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 Serialize for UploadUrlDetail
impl Serialize for UploadUrlDetail
Source§impl Validate for UploadUrlDetail
impl Validate for UploadUrlDetail
Source§impl<'v_a> ValidateArgs<'v_a> for UploadUrlDetail
impl<'v_a> ValidateArgs<'v_a> for UploadUrlDetail
Auto Trait Implementations§
impl Freeze for UploadUrlDetail
impl RefUnwindSafe for UploadUrlDetail
impl Send for UploadUrlDetail
impl Sync for UploadUrlDetail
impl Unpin for UploadUrlDetail
impl UnwindSafe for UploadUrlDetail
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