pub struct Record {
pub id: RecordId,
pub created: TimestampNanos,
pub caller: CallerId,
pub topic: RecordTopic,
pub content: String,
pub completion: Option<(TimestampNanos, String)>,
}Expand description
每条记录
Fields§
§id: RecordId记录 id
created: TimestampNanos创建时间戳 纳秒
caller: CallerId调用人
topic: RecordTopic记录主题
content: String记录内容
completion: Option<(TimestampNanos, String)>完成时间与执行结果
Trait Implementations§
Source§impl CandidType for Record
impl CandidType for Record
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
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 Recordable<Record, u8, RecordSearch> for Records
impl Recordable<Record, u8, RecordSearch> for Records
Source§fn record_update(&mut self, record_id: RecordId, result: String)
fn record_update(&mut self, record_id: RecordId, result: String)
更新记录
Source§fn record_find_all(&self) -> &[Record]
fn record_find_all(&self) -> &[Record]
查询所有
Source§fn record_push(
&mut self,
caller: CallerId,
topic: RecordTopic,
content: String,
) -> RecordId
fn record_push( &mut self, caller: CallerId, topic: RecordTopic, content: String, ) -> RecordId
插入记录
Source§fn record_find_by_page(
&self,
page: &QueryPage,
max_page_size: u32,
search: &Option<Search>,
) -> Result<PageData<&Record>, QueryPageError>
fn record_find_by_page( &self, page: &QueryPage, max_page_size: u32, search: &Option<Search>, ) -> Result<PageData<&Record>, QueryPageError>
分页查询
Source§impl Searchable<Record> for RecordSearch
impl Searchable<Record> for RecordSearch
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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