pub struct EntryContext {
pub request_id: Option<Bytes>,
pub caller: Option<Bytes>,
pub function: Option<Bytes>,
pub line: Option<u32>,
}
Expand description
Values parsed from a query comment, these values are currently overly-specific
Fields§
§request_id: Option<Bytes>
optional request id, such as an SSRID
caller: Option<Bytes>
optional caller
function: Option<Bytes>
optional function/method
line: Option<u32>
optional line number
Implementations§
Source§impl EntryContext
impl EntryContext
Sourcepub fn request_id(&self) -> Option<Cow<'_, str>>
pub fn request_id(&self) -> Option<Cow<'_, str>>
returns the request_id from query comment
Sourcepub fn request_id_bytes(&self) -> Option<Bytes>
pub fn request_id_bytes(&self) -> Option<Bytes>
returns the request_id from query comment
Sourcepub fn caller_bytes(&self) -> Option<Bytes>
pub fn caller_bytes(&self) -> Option<Bytes>
returns the caller from query comment
Sourcepub fn function_bytes(&self) -> Option<Bytes>
pub fn function_bytes(&self) -> Option<Bytes>
returns the function from query comment
Trait Implementations§
Source§impl Clone for EntryContext
impl Clone for EntryContext
Source§fn clone(&self) -> EntryContext
fn clone(&self) -> EntryContext
Returns a copy 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 EntryContext
impl Debug for EntryContext
Source§impl PartialEq for EntryContext
impl PartialEq for EntryContext
impl StructuralPartialEq for EntryContext
Auto Trait Implementations§
impl !Freeze for EntryContext
impl RefUnwindSafe for EntryContext
impl Send for EntryContext
impl Sync for EntryContext
impl Unpin for EntryContext
impl UnwindSafe for EntryContext
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