pub struct ReadingBatchDTO {
pub topic_id: String,
pub elapsed_ms: u64,
pub visible_posts: Vec<VisiblePostDTO>,
}Expand description
PUT /api/v1/reading-sessions/{sessionId}/batches/{batchNo} 的请求体。
Fields§
§topic_id: String§elapsed_ms: u64§visible_posts: Vec<VisiblePostDTO>至少 1 项,否则服务端返回 400 VALIDATION_FAILED。
Trait Implementations§
Source§impl Clone for ReadingBatchDTO
impl Clone for ReadingBatchDTO
Source§impl Debug for ReadingBatchDTO
impl Debug for ReadingBatchDTO
Source§impl<'de> Deserialize<'de> for ReadingBatchDTO
impl<'de> Deserialize<'de> for ReadingBatchDTO
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 ReadingBatchDTO
impl RefUnwindSafe for ReadingBatchDTO
impl Send for ReadingBatchDTO
impl Sync for ReadingBatchDTO
impl Unpin for ReadingBatchDTO
impl UnsafeUnpin for ReadingBatchDTO
impl UnwindSafe for ReadingBatchDTO
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