pub struct Description<'a> {
pub text: &'a str,
pub tags: &'a [&'a str],
pub owner: Option<&'a str>,
}Expand description
What a caller says about a database.
Fields§
§text: &'a strFree text: what this database is for, in the words someone would search with. Written by a person or by the model that just created it.
Tags to filter by (kind:chat, archived, whatever a caller means).
owner: Option<&'a str>Who it belongs to, if anyone.
Trait Implementations§
Source§impl<'a> Clone for Description<'a>
impl<'a> Clone for Description<'a>
Source§fn clone(&self) -> Description<'a>
fn clone(&self) -> Description<'a>
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 moreimpl<'a> Copy for Description<'a>
Source§impl<'a> Debug for Description<'a>
impl<'a> Debug for Description<'a>
Source§impl<'a> Default for Description<'a>
impl<'a> Default for Description<'a>
Source§fn default() -> Description<'a>
fn default() -> Description<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for Description<'a>
impl<'a> RefUnwindSafe for Description<'a>
impl<'a> Send for Description<'a>
impl<'a> Sync for Description<'a>
impl<'a> Unpin for Description<'a>
impl<'a> UnsafeUnpin for Description<'a>
impl<'a> UnwindSafe for Description<'a>
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