pub struct IndexSubjectAddInfo {
pub subject_id: Option<u32>,
pub sort: Option<u32>,
pub comment: Option<String>,
}Expand description
用于向索引添加条目的请求参数结构体
描述添加到索引中的条目信息,包括条目ID、排序权重和备注
Fields§
§subject_id: Option<u32>可选,要添加到索引的条目ID(必需参数,未提供则添加失败)
sort: Option<u32>可选,该条目在索引中的排序权重(数值越小越靠前,默认可能按添加顺序)
comment: Option<String>可选,对该条目添加的备注说明(用于解释条目在索引中的意义)
Trait Implementations§
Source§impl Clone for IndexSubjectAddInfo
impl Clone for IndexSubjectAddInfo
Source§fn clone(&self) -> IndexSubjectAddInfo
fn clone(&self) -> IndexSubjectAddInfo
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 IndexSubjectAddInfo
impl Debug for IndexSubjectAddInfo
Source§impl<'de> Deserialize<'de> for IndexSubjectAddInfo
impl<'de> Deserialize<'de> for IndexSubjectAddInfo
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 IndexSubjectAddInfo
impl RefUnwindSafe for IndexSubjectAddInfo
impl Send for IndexSubjectAddInfo
impl Sync for IndexSubjectAddInfo
impl Unpin for IndexSubjectAddInfo
impl UnwindSafe for IndexSubjectAddInfo
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