pub struct ResultTemplate {Show 18 fields
pub id: Uuid,
pub project_id: Uuid,
pub name: String,
pub file_pattern: String,
pub method: String,
pub pattern: String,
pub csv_column: String,
pub csv_key_column: String,
pub csv_key_value: String,
pub pick: String,
pub unit: String,
pub lower_limit: Option<f64>,
pub upper_limit: Option<f64>,
pub load_case: String,
pub solver: String,
pub enabled: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
An extraction template of a project group (a row of result_templates).
Fields§
§id: Uuid§project_id: Uuid§name: StringThe result value’s name.
file_pattern: StringFile names it applies to: * and ?, case-insensitive.
method: Stringregex, csv or table.
pattern: Stringregex: the expression; its first capture group is the number.
csv_column: Stringcsv / table: the column (header name) that holds the number.
csv_key_column: Stringcsv: optional – only the row whose csv_key_column is csv_key_value.
csv_key_value: String§pick: StringMore than one match: first or last.
unit: String§lower_limit: Option<f64>§upper_limit: Option<f64>§load_case: String§solver: String§enabled: bool§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for ResultTemplate
impl Clone for ResultTemplate
Source§impl Debug for ResultTemplate
impl Debug for ResultTemplate
Source§impl<'a, R: Row> FromRow<'a, R> for ResultTemplatewhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<f64>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for ResultTemplatewhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<f64>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for ResultTemplate
impl RefUnwindSafe for ResultTemplate
impl Send for ResultTemplate
impl Sync for ResultTemplate
impl Unpin for ResultTemplate
impl UnsafeUnpin for ResultTemplate
impl UnwindSafe for ResultTemplate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.