pub struct DetectionIdRecord {
pub id: String,
pub version: String,
pub content_hash: String,
}Expand description
A detection identity, as a file holds it.
Fields§
§id: StringThe author-chosen identifier.
version: StringIts version, as major.minor.patch.
content_hash: StringThe content hash of the detection body.
Implementations§
Source§impl DetectionIdRecord
impl DetectionIdRecord
Sourcepub fn rebuild(&self) -> Option<DetectionId>
pub fn rebuild(&self) -> Option<DetectionId>
Rebuilds the identity, or None if it names nothing. An unparseable version
reads as 0.0.0, the least trusted.
Trait Implementations§
Source§impl Clone for DetectionIdRecord
impl Clone for DetectionIdRecord
Source§impl Debug for DetectionIdRecord
impl Debug for DetectionIdRecord
Source§impl<'de> Deserialize<'de> for DetectionIdRecord
impl<'de> Deserialize<'de> for DetectionIdRecord
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 DetectionIdRecord
Source§impl From<&DetectionId> for DetectionIdRecord
impl From<&DetectionId> for DetectionIdRecord
Source§fn from(detection: &DetectionId) -> Self
fn from(detection: &DetectionId) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DetectionIdRecord
impl PartialEq for DetectionIdRecord
Source§impl Serialize for DetectionIdRecord
impl Serialize for DetectionIdRecord
impl StructuralPartialEq for DetectionIdRecord
Auto Trait Implementations§
impl Freeze for DetectionIdRecord
impl RefUnwindSafe for DetectionIdRecord
impl Send for DetectionIdRecord
impl Sync for DetectionIdRecord
impl Unpin for DetectionIdRecord
impl UnsafeUnpin for DetectionIdRecord
impl UnwindSafe for DetectionIdRecord
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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