pub struct UserPrompt {
pub index: usize,
pub ts_ms: Option<i64>,
pub text_hash: String,
pub preview: String,
pub tag: String,
}Fields§
§index: usize§ts_ms: Option<i64>§text_hash: String§preview: String§tag: StringImplementations§
Source§impl UserPrompt
impl UserPrompt
pub fn prompt_key(&self) -> String
Trait Implementations§
Source§impl Clone for UserPrompt
impl Clone for UserPrompt
Source§fn clone(&self) -> UserPrompt
fn clone(&self) -> UserPrompt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UserPrompt
impl Debug for UserPrompt
Source§impl<'de> Deserialize<'de> for UserPrompt
impl<'de> Deserialize<'de> for UserPrompt
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 UserPrompt
impl RefUnwindSafe for UserPrompt
impl Send for UserPrompt
impl Sync for UserPrompt
impl Unpin for UserPrompt
impl UnsafeUnpin for UserPrompt
impl UnwindSafe for UserPrompt
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