pub struct GeneratedClientMetadataExtractor { /* private fields */ }Expand description
Built-in OpenAPI Generator metadata extractor.
Implementations§
Source§impl GeneratedClientMetadataExtractor
impl GeneratedClientMetadataExtractor
Sourcepub const fn with_budgets(budgets: ExtractionBudgets) -> Self
pub const fn with_budgets(budgets: ExtractionBudgets) -> Self
Creates an extractor with explicit effective per-invocation budgets.
Trait Implementations§
Source§impl BoundaryExtractor for GeneratedClientMetadataExtractor
impl BoundaryExtractor for GeneratedClientMetadataExtractor
Source§fn supports(&self, file: &FileDescriptor) -> bool
fn supports(&self, file: &FileDescriptor) -> bool
Returns whether this extractor can consume a candidate file.
Source§fn discover<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 DiscoverContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveredInput>, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn discover<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 DiscoverContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveredInput>, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Selects supported files from a bounded deterministic inventory.
Source§fn extract<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 ExtractInput<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ExtractionBatch, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn extract<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 ExtractInput<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ExtractionBatch, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Produces a complete replacement batch for one source file.
Source§fn fingerprint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 ExtractInput<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ContentFingerprint, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn fingerprint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 ExtractInput<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ContentFingerprint, ExtractorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Computes the source fingerprint used for incremental reuse.
Auto Trait Implementations§
impl Freeze for GeneratedClientMetadataExtractor
impl RefUnwindSafe for GeneratedClientMetadataExtractor
impl Send for GeneratedClientMetadataExtractor
impl Sync for GeneratedClientMetadataExtractor
impl Unpin for GeneratedClientMetadataExtractor
impl UnsafeUnpin for GeneratedClientMetadataExtractor
impl UnwindSafe for GeneratedClientMetadataExtractor
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