pub struct PostmapDetails {
pub error_type: ErrorType,
pub file_path: Option<String>,
pub error_message: String,
pub command_args: Option<String>,
}Expand description
Postmap错误详细信息
包含postmap操作失败时的具体错误信息和上下文
Fields§
§error_type: ErrorType错误类型分类
file_path: Option<String>相关文件路径(如果适用) 当错误与特定文件相关时提供文件路径
error_message: String错误消息描述 来自postmap命令的具体错误信息
command_args: Option<String>命令参数(如果适用) 导致错误的命令行参数
Implementations§
Source§impl PostmapDetails
impl PostmapDetails
pub fn new_file_error( error_type: ErrorType, file_path: String, error_message: String, ) -> Self
pub fn new_command_error( error_message: String, command_args: Option<String>, ) -> Self
Trait Implementations§
Source§impl Clone for PostmapDetails
impl Clone for PostmapDetails
Source§fn clone(&self) -> PostmapDetails
fn clone(&self) -> PostmapDetails
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 Debug for PostmapDetails
impl Debug for PostmapDetails
Source§impl<'de> Deserialize<'de> for PostmapDetails
impl<'de> Deserialize<'de> for PostmapDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PostmapDetails
impl PartialEq for PostmapDetails
Source§impl Serialize for PostmapDetails
impl Serialize for PostmapDetails
impl StructuralPartialEq for PostmapDetails
Auto Trait Implementations§
impl Freeze for PostmapDetails
impl RefUnwindSafe for PostmapDetails
impl Send for PostmapDetails
impl Sync for PostmapDetails
impl Unpin for PostmapDetails
impl UnwindSafe for PostmapDetails
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<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