pub struct TemplateDetectionResult {
pub is_template: bool,
pub engine: Option<TemplateEngine>,
pub detection_method: TemplateDetectionMethod,
pub confidence: f64,
pub score_boost: f64,
}Expand description
Result of template detection
Fields§
§is_template: boolWhether the file is detected as a template
engine: Option<TemplateEngine>The detected template engine (if any)
detection_method: TemplateDetectionMethodMethod used for detection
confidence: f64Confidence score (0.0 to 1.0)
score_boost: f64Score boost to apply
Implementations§
Source§impl TemplateDetectionResult
impl TemplateDetectionResult
pub fn not_template() -> Self
pub fn template( engine: TemplateEngine, method: TemplateDetectionMethod, confidence: f64, ) -> Self
Trait Implementations§
Source§impl Clone for TemplateDetectionResult
impl Clone for TemplateDetectionResult
Source§fn clone(&self) -> TemplateDetectionResult
fn clone(&self) -> TemplateDetectionResult
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TemplateDetectionResult
impl RefUnwindSafe for TemplateDetectionResult
impl Send for TemplateDetectionResult
impl Sync for TemplateDetectionResult
impl Unpin for TemplateDetectionResult
impl UnwindSafe for TemplateDetectionResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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