pub struct TemplateInput {Show 14 fields
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,
}Expand description
A template as entered (web form, REST API).
Fields§
§name: String§file_pattern: String§method: String§pattern: String§csv_column: String§csv_key_column: String§csv_key_value: String§pick: String§unit: String§lower_limit: Option<f64>§upper_limit: Option<f64>§load_case: String§solver: String§enabled: boolImplementations§
Source§impl TemplateInput
impl TemplateInput
Sourcepub fn validated(self) -> Result<TemplateInput, String>
pub fn validated(self) -> Result<TemplateInput, String>
Checks and normalises the input: lengths, the method’s fields and a regular expression that compiles within the limits and has exactly one capture group.
Trait Implementations§
Source§impl Clone for TemplateInput
impl Clone for TemplateInput
Source§impl Debug for TemplateInput
impl Debug for TemplateInput
Source§impl Default for TemplateInput
impl Default for TemplateInput
Source§impl<'de> Deserialize<'de> for TemplateInput
impl<'de> Deserialize<'de> for TemplateInput
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
Auto Trait Implementations§
impl Freeze for TemplateInput
impl RefUnwindSafe for TemplateInput
impl Send for TemplateInput
impl Sync for TemplateInput
impl Unpin for TemplateInput
impl UnsafeUnpin for TemplateInput
impl UnwindSafe for TemplateInput
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.