pub struct SemanticAssertParams {
pub expression: String,
pub label: String,
pub condition: AssertionCondition,
pub expected: Value,
pub webview_label: Option<String>,
}Expand description
Parameters for the semantic_assert tool.
Fields§
§expression: StringJavaScript expression to evaluate in the webview. The result is checked against the assertion.
label: StringHuman-readable label for this assertion (e.g. “user is logged in”).
condition: AssertionConditionCondition to evaluate against the actual value.
expected: ValueExpected value for the assertion.
webview_label: Option<String>Target webview label.
Trait Implementations§
Source§impl Debug for SemanticAssertParams
impl Debug for SemanticAssertParams
Source§impl<'de> Deserialize<'de> for SemanticAssertParams
impl<'de> Deserialize<'de> for SemanticAssertParams
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
Source§impl JsonSchema for SemanticAssertParams
impl JsonSchema for SemanticAssertParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SemanticAssertParams
impl RefUnwindSafe for SemanticAssertParams
impl Send for SemanticAssertParams
impl Sync for SemanticAssertParams
impl Unpin for SemanticAssertParams
impl UnsafeUnpin for SemanticAssertParams
impl UnwindSafe for SemanticAssertParams
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