pub enum Message {
Edit,
Blank,
Text(String),
}Expand description
The user supplied Patch description.
Variants§
Edit
Prompt user to write comment in editor.
Blank
Don’t leave a comment.
Text(String)
Use the following string as comment.
Implementations§
Source§impl Message
impl Message
Sourcepub fn get(self, help: &str) -> Result<String>
pub fn get(self, help: &str) -> Result<String>
Get the Message as a string according to the method.
Sourcepub fn edit_title_description(
title: Option<Title>,
description: Option<String>,
help: &str,
) -> Result<Option<(Title, String)>>
pub fn edit_title_description( title: Option<Title>, description: Option<String>, help: &str, ) -> Result<Option<(Title, String)>>
Open the editor with the given title and description (if any). Returns the edited title and description, or nothing if it couldn’t be parsed.
pub fn append(&mut self, arg: &str)
Trait Implementations§
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more