pub struct ClientSection {
pub operations: Vec<String>,
pub prune_models: bool,
}Expand description
Optional scope for generated HTTP-client operations.
Selectors use the same grammar as ServerSection::operations. An absent
section, or an empty operations list, preserves the historical behavior
of generating every operation. The section is ignored when the async HTTP
client is disabled and never filters the operation registry. Set
prune_models = true to also remove models outside the combined selected
client/server operation closure.
Fields§
§operations: Vec<String>Selectors picking client methods: operationId, METHOD /path, or
tag:<name>. Empty means all operations.
prune_models: boolRestrict types.rs to models reachable from the selected client
operations plus any selected server operations.
Implementations§
Source§impl ClientSection
impl ClientSection
Sourcepub fn parsed_selectors(&self) -> Result<Vec<Selector>, SelectorParseError>
pub fn parsed_selectors(&self) -> Result<Vec<Selector>, SelectorParseError>
Parse configured selectors using the shared client/server grammar.
Trait Implementations§
Source§impl Clone for ClientSection
impl Clone for ClientSection
Source§fn clone(&self) -> ClientSection
fn clone(&self) -> ClientSection
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 ClientSection
impl Debug for ClientSection
Source§impl<'de> Deserialize<'de> for ClientSection
impl<'de> Deserialize<'de> for ClientSection
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 ClientSection
impl RefUnwindSafe for ClientSection
impl Send for ClientSection
impl Sync for ClientSection
impl Unpin for ClientSection
impl UnsafeUnpin for ClientSection
impl UnwindSafe for ClientSection
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