pub struct ExtensionResult {
pub success: bool,
pub message: Option<String>,
pub data: HashMap<String, String>,
}Expand description
Result of extension command execution
Fields§
§success: boolWhether the command succeeded
message: Option<String>Optional result message
data: HashMap<String, String>Optional result data
Implementations§
Source§impl ExtensionResult
impl ExtensionResult
Sourcepub fn success_with_message(message: String) -> Self
pub fn success_with_message(message: String) -> Self
Create a successful result with message
Trait Implementations§
Source§impl Clone for ExtensionResult
impl Clone for ExtensionResult
Source§fn clone(&self) -> ExtensionResult
fn clone(&self) -> ExtensionResult
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 moreAuto Trait Implementations§
impl Freeze for ExtensionResult
impl RefUnwindSafe for ExtensionResult
impl Send for ExtensionResult
impl Sync for ExtensionResult
impl Unpin for ExtensionResult
impl UnwindSafe for ExtensionResult
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