pub struct Pointer {
pub source: String,
pub line: Option<u32>,
}Expand description
Reference to the source of an Evidence.
source is a logical path into the case ("request.headers.authorization",
"response.status", "server.log", or the literal "computed" for
values the rule produced rather than read). line is a 1-indexed
line number into a log file when relevant.
Fields§
§source: StringLogical source of the value, e.g. "request.headers.authorization",
"response.status", "server.log", "case.context.webhook.tolerance_seconds",
or "computed" for values the rule produced rather than read.
line: Option<u32>Optional 1-indexed line number when source is a log file.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pointer
impl<'de> Deserialize<'de> for Pointer
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
impl Eq for Pointer
impl StructuralPartialEq for Pointer
Auto Trait Implementations§
impl Freeze for Pointer
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnsafeUnpin for Pointer
impl UnwindSafe for Pointer
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