pub struct JavaFile {
pub package_path: String,
pub class_name: String,
pub source: String,
}Expand description
A single generated Java source file.
Fields§
§package_path: StringJava package path with dot separators (e.g. org.example.types).
class_name: StringClass name = file name without the .java suffix.
source: StringComplete source file (including package, imports, class body).
Implementations§
Trait Implementations§
impl Eq for JavaFile
impl StructuralPartialEq for JavaFile
Auto Trait Implementations§
impl Freeze for JavaFile
impl RefUnwindSafe for JavaFile
impl Send for JavaFile
impl Sync for JavaFile
impl Unpin for JavaFile
impl UnsafeUnpin for JavaFile
impl UnwindSafe for JavaFile
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