pub struct TransformOptions {
pub name: String,
pub skip_endpoints: Vec<(String, String)>,
pub warnings: Vec<ValidationWarning>,
}Expand description
Options for transforming an OpenAPI specification
Fields§
§name: StringThe name of the API
skip_endpoints: Vec<(String, String)>Endpoints to skip during transformation
warnings: Vec<ValidationWarning>Validation warnings to include in the cached spec
Implementations§
Source§impl TransformOptions
impl TransformOptions
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Creates new transform options with the given API name
Sourcepub fn with_skip_endpoints(self, endpoints: Vec<(String, String)>) -> Self
pub fn with_skip_endpoints(self, endpoints: Vec<(String, String)>) -> Self
Sets the endpoints to skip
Sourcepub fn with_warnings(self, warnings: Vec<ValidationWarning>) -> Self
pub fn with_warnings(self, warnings: Vec<ValidationWarning>) -> Self
Sets the validation warnings
Trait Implementations§
Source§impl Clone for TransformOptions
impl Clone for TransformOptions
Source§fn clone(&self) -> TransformOptions
fn clone(&self) -> TransformOptions
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 moreAuto Trait Implementations§
impl Freeze for TransformOptions
impl RefUnwindSafe for TransformOptions
impl Send for TransformOptions
impl Sync for TransformOptions
impl Unpin for TransformOptions
impl UnwindSafe for TransformOptions
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