pub struct IndicatorBuilder { /* private fields */ }Implementations§
Source§impl IndicatorBuilder
impl IndicatorBuilder
pub fn name(self, name: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
pub fn indicator_types(self, types: Vec<String>) -> Self
pub fn pattern(self, pattern: impl Into<String>) -> Self
pub fn pattern_type(self, pt: IndicatorPatternType) -> Self
pub fn pattern_version(self, version: impl Into<String>) -> Self
pub fn valid_from(self, t: DateTime<Utc>) -> Self
pub fn valid_until(self, t: DateTime<Utc>) -> Self
pub fn kill_chain_phases(self, phases: Vec<KillChainPhase>) -> Self
pub fn created_by_ref(self, r: impl Into<String>) -> Self
Sourcepub fn validate_pattern(self, validate: bool) -> Self
pub fn validate_pattern(self, validate: bool) -> Self
Enable pattern validation (default: false)
pub fn build(self) -> Result<Indicator, BuilderError>
Trait Implementations§
Source§impl Debug for IndicatorBuilder
impl Debug for IndicatorBuilder
Source§impl Default for IndicatorBuilder
impl Default for IndicatorBuilder
Source§fn default() -> IndicatorBuilder
fn default() -> IndicatorBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IndicatorBuilder
impl RefUnwindSafe for IndicatorBuilder
impl Send for IndicatorBuilder
impl Sync for IndicatorBuilder
impl Unpin for IndicatorBuilder
impl UnwindSafe for IndicatorBuilder
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