pub enum ZenityOutputExtButton<T>where
T: Sized,{
Affirmed {
content: Option<T>,
},
Rejected {
content: Option<String>,
},
ExtButton {
content: String,
},
Unknown {
exit_code: i32,
stdout: String,
stderr: String,
},
}
Expand description
Represents the user’s response to the dialog.
Variants§
Affirmed
The user clicked an affirmative
Fields
Rejected
The user clicked a button indicating rejection.
Fields
ExtButton
If configured with an extra button, this indicates that the user clicked that button.
Unknown
In the case that Zenity returned an unexpected response, this contains the full details of the response so that the user may respond to it as needed. If you get this output, it indicates a bug in this library so please report it.
Trait Implementations§
Source§impl<T> Clone for ZenityOutputExtButton<T>
impl<T> Clone for ZenityOutputExtButton<T>
Source§fn clone(&self) -> ZenityOutputExtButton<T>
fn clone(&self) -> ZenityOutputExtButton<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for ZenityOutputExtButton<T>
impl<T> Debug for ZenityOutputExtButton<T>
Source§impl<T> From<ZenityOutput<T>> for ZenityOutputExtButton<T>
impl<T> From<ZenityOutput<T>> for ZenityOutputExtButton<T>
Source§fn from(value: ZenityOutput<T>) -> Self
fn from(value: ZenityOutput<T>) -> Self
Converts to this type from the input type.
Source§impl<T> PartialEq for ZenityOutputExtButton<T>
impl<T> PartialEq for ZenityOutputExtButton<T>
impl<T> StructuralPartialEq for ZenityOutputExtButton<T>where
T: Sized,
Auto Trait Implementations§
impl<T> Freeze for ZenityOutputExtButton<T>where
T: Freeze,
impl<T> RefUnwindSafe for ZenityOutputExtButton<T>where
T: RefUnwindSafe,
impl<T> Send for ZenityOutputExtButton<T>where
T: Send,
impl<T> Sync for ZenityOutputExtButton<T>where
T: Sync,
impl<T> Unpin for ZenityOutputExtButton<T>where
T: Unpin,
impl<T> UnwindSafe for ZenityOutputExtButton<T>where
T: UnwindSafe,
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