pub struct RequestDef {
pub name: String,
pub method: String,
pub url: String,
pub headers: HashMap<String, String>,
pub body: Option<String>,
pub expect: Option<ExpectDef>,
pub no_auth: bool,
pub timeout_ms: Option<u64>,
pub skip: bool,
pub tags: Vec<String>,
}Expand description
1リクエストの定義。
Fields§
§name: Stringテスト名。
method: StringHTTPメソッド (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS)。
url: StringリクエストURL。変数展開可 ({{VAR}}, $VAR, ${VAR})。
headers: HashMap<String, String>リクエストヘッダー。
body: Option<String>リクエストボディ。JSONやフォームデータ等。
expect: Option<ExpectDef>期待値。省略時はステータスコードのみ確認しない。
no_auth: boolBearer自動注入を無効化。
timeout_ms: Option<u64>このリクエストのタイムアウト (ms)。省略時はスイートレベルの値を使用。
skip: boolこのテストをスキップ。
タグ(フィルタで使用: @tag:smoke)。
Trait Implementations§
Source§impl Clone for RequestDef
impl Clone for RequestDef
Source§fn clone(&self) -> RequestDef
fn clone(&self) -> RequestDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestDef
impl Debug for RequestDef
Source§impl<'de> Deserialize<'de> for RequestDef
impl<'de> Deserialize<'de> for RequestDef
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 RequestDef
impl JsonSchema for RequestDef
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 RequestDef
impl RefUnwindSafe for RequestDef
impl Send for RequestDef
impl Sync for RequestDef
impl Unpin for RequestDef
impl UnsafeUnpin for RequestDef
impl UnwindSafe for RequestDef
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