pub struct GeneratedFile {
pub name: String,
pub content: String,
}Expand description
Result of generating Rust code for a single .proto file.
Fields§
§name: StringThe output file path (e.g., “my_package.rs”).
content: StringThe generated Rust source code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GeneratedFile
impl RefUnwindSafe for GeneratedFile
impl Send for GeneratedFile
impl Sync for GeneratedFile
impl Unpin for GeneratedFile
impl UnsafeUnpin for GeneratedFile
impl UnwindSafe for GeneratedFile
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