pub struct MetaParts<'a> {
pub ep: u8,
pub sess_id: Cow<'a, str>,
pub thrd_id: Cow<'a, str>,
pub username: Cow<'a, str>,
pub trxid: Cow<'a, str>,
pub statement: Cow<'a, str>,
pub appname: Cow<'a, str>,
pub client_ip: Cow<'a, str>,
}Expand description
元数据部分
包含日志记录的所有元数据字段,如会话 ID、用户名等。
Fields§
§ep: u8EP(Execution Point)编号,范围 0-255
sess_id: Cow<'a, str>会话 ID
thrd_id: Cow<'a, str>线程 ID
username: Cow<'a, str>用户名
trxid: Cow<'a, str>事务 ID
statement: Cow<'a, str>语句 ID
appname: Cow<'a, str>应用程序名称
client_ip: Cow<'a, str>客户端 IP 地址(可选)
Trait Implementations§
impl<'a> StructuralPartialEq for MetaParts<'a>
Auto Trait Implementations§
impl<'a> Freeze for MetaParts<'a>
impl<'a> RefUnwindSafe for MetaParts<'a>
impl<'a> Send for MetaParts<'a>
impl<'a> Sync for MetaParts<'a>
impl<'a> Unpin for MetaParts<'a>
impl<'a> UnwindSafe for MetaParts<'a>
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