pub struct RustdocLoader;Expand description
Loads rustdoc JSON from a file path
The JSON file should be generated with:
cargo +nightly rustdoc --package aws-sdk-s3 -- -Z unstable-options --output-format jsonImplementations§
Source§impl RustdocLoader
impl RustdocLoader
Sourcepub fn load_from_file(path: &Path) -> Result<Crate>
pub fn load_from_file(path: &Path) -> Result<Crate>
Load rustdoc JSON from a file
Sourcepub fn find_operation_modules(crate_data: &Crate) -> Vec<String>
pub fn find_operation_modules(crate_data: &Crate) -> Vec<String>
Extract operation module names from the crate
In AWS SDK crates, operations are in the operation module
Sourcepub fn find_type_modules(crate_data: &Crate) -> Vec<String>
pub fn find_type_modules(crate_data: &Crate) -> Vec<String>
Extract type names from the types module
Sourcepub fn extract_struct_fields(
crate_data: &Crate,
struct_name: &str,
) -> Vec<FieldDefinition>
pub fn extract_struct_fields( crate_data: &Crate, struct_name: &str, ) -> Vec<FieldDefinition>
Extract fields from a struct by name
Searches for a struct with the given name and extracts its field definitions. Returns empty vector if struct not found or has no fields.
Auto Trait Implementations§
impl Freeze for RustdocLoader
impl RefUnwindSafe for RustdocLoader
impl Send for RustdocLoader
impl Sync for RustdocLoader
impl Unpin for RustdocLoader
impl UnwindSafe for RustdocLoader
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