pub struct OperateRespResultBuilder { /* private fields */ }Implementations§
Source§impl OperateRespResultBuilder
impl OperateRespResultBuilder
pub const fn new(executed_command: String) -> Self
pub fn set_failure(self, err_code: u32, err_msg: Option<String>) -> Self
pub fn set_path(self, req_obj_path: String) -> Self
pub fn set_output_args(self, output_args: Vec<(String, String)>) -> Self
pub fn build(self) -> Result<OperationResult>
Trait Implementations§
Source§impl Clone for OperateRespResultBuilder
impl Clone for OperateRespResultBuilder
Source§fn clone(&self) -> OperateRespResultBuilder
fn clone(&self) -> OperateRespResultBuilder
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 OperateRespResultBuilder
impl RefUnwindSafe for OperateRespResultBuilder
impl Send for OperateRespResultBuilder
impl Sync for OperateRespResultBuilder
impl Unpin for OperateRespResultBuilder
impl UnwindSafe for OperateRespResultBuilder
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