pub struct Message { /* private fields */ }
Implementations
sourceimpl Message
impl Message
pub fn id(&self) -> Cow<'_, str>
pub fn thread_id(&self) -> Cow<'_, str>
pub fn replies(&self) -> MessagesⓘNotable traits for Messagesimpl Iterator for Messages type Item = Message;
pub fn count_files(&self) -> i32
pub fn filenames(&self) -> FilenamesⓘNotable traits for Filenamesimpl Iterator for Filenames type Item = PathBuf;
pub fn filename(&self) -> &Path
pub fn date(&self) -> i64
pub fn header(&self, name: &str) -> Result<Option<Cow<'_, str>>, Error>
pub fn add_tag(&self, tag: &str) -> Result<(), Error>
pub fn remove_tag(&self, tag: &str) -> Result<(), Error>
pub fn reindex(&self, indexopts: IndexOpts) -> Result<(), Error>
pub fn freeze(&self) -> Result<(), Error>
pub fn thaw(&self) -> Result<(), Error>
pub fn properties(&self, key: &str, exact: bool) -> MessagePropertiesⓘNotable traits for MessagePropertiesimpl Iterator for MessageProperties type Item = (String, String);
pub fn remove_all_properties(&self, key: Option<&str>) -> Result<(), Error>
pub fn remove_all_properties_with_prefix(
&self,
prefix: Option<&str>
) -> Result<(), Error>
pub fn count_properties(&self, key: &str) -> Result<u32, Error>
pub fn property(&self, key: &str) -> Result<Cow<'_, str>, Error>
pub fn add_property(&self, key: &str, value: &str) -> Result<(), Error>
pub fn remove_property(&self, key: &str, value: &str) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Message
impl !Send for Message
impl !Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more