pub struct ApiParserTestCaseOutputAssertions {
pub fields_have_values: Vec<ApiFieldHasValue>,
pub fields_not_present: Vec<String>,
}Fields§
§fields_have_values: Vec<ApiFieldHasValue>Fields which should contain specific values in the output
fields_not_present: Vec<String>Fields which must not be present in the output
Implementations§
Source§impl ApiParserTestCaseOutputAssertions
impl ApiParserTestCaseOutputAssertions
pub fn new( fields_have_values: Vec<ApiFieldHasValue>, fields_not_present: Vec<String>, ) -> ApiParserTestCaseOutputAssertions
Trait Implementations§
Source§impl Clone for ApiParserTestCaseOutputAssertions
impl Clone for ApiParserTestCaseOutputAssertions
Source§fn clone(&self) -> ApiParserTestCaseOutputAssertions
fn clone(&self) -> ApiParserTestCaseOutputAssertions
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 moreSource§impl Default for ApiParserTestCaseOutputAssertions
impl Default for ApiParserTestCaseOutputAssertions
Source§fn default() -> ApiParserTestCaseOutputAssertions
fn default() -> ApiParserTestCaseOutputAssertions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiParserTestCaseOutputAssertions
impl<'de> Deserialize<'de> for ApiParserTestCaseOutputAssertions
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 PartialEq for ApiParserTestCaseOutputAssertions
impl PartialEq for ApiParserTestCaseOutputAssertions
Source§fn eq(&self, other: &ApiParserTestCaseOutputAssertions) -> bool
fn eq(&self, other: &ApiParserTestCaseOutputAssertions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiParserTestCaseOutputAssertions
Auto Trait Implementations§
impl Freeze for ApiParserTestCaseOutputAssertions
impl RefUnwindSafe for ApiParserTestCaseOutputAssertions
impl Send for ApiParserTestCaseOutputAssertions
impl Sync for ApiParserTestCaseOutputAssertions
impl Unpin for ApiParserTestCaseOutputAssertions
impl UnwindSafe for ApiParserTestCaseOutputAssertions
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