diff --git a/src/stash.rs b/src/stash.rs index ea898e46ba..acf6e44036 100644 --- a/src/stash.rs +++ b/src/stash.rs @@ -38,6 +38,13 @@ impl<'a> StashSaveOptions<'a> { opts } + /// Customize optional `message` field + pub fn message(&mut self, message: Option<&str>) -> &mut Self { + let message = crate::opt_cstr(message).unwrap_or_default(); + self.message = message; + self + } + /// Customize optional `flags` field pub fn flags(&mut self, flags: Option) -> &mut Self { self.flags = flags;