pub struct JavaConfig {
pub header_comment: HeaderComment,
pub package: Option<String>,
pub prefix: Option<String>,
pub type_mappings: HashMap<String, String>,
pub namespace_class: bool,
pub serializer: JavaSerializerOptions,
pub indent: IndentOptions,
}Fields§
§header_comment: HeaderCommentThe header comment to prepend to generated files
package: Option<String>Name of the Java package
prefix: Option<String>The prefix to append to user-defined types
type_mappings: HashMap<String, String>Conversions from Rust type names to Java type names
namespace_class: boolWhether generated Java classes should be wrapped in a namespace class
serializer: JavaSerializerOptionsOutput code for a specific serializer. Currently only Gson is supported.
indent: IndentOptionsDetermines the type and size of indentation.
Trait Implementations§
Source§impl Debug for JavaConfig
impl Debug for JavaConfig
Source§impl Default for JavaConfig
impl Default for JavaConfig
Source§impl<'de> Deserialize<'de> for JavaConfigwhere
JavaConfig: Default,
impl<'de> Deserialize<'de> for JavaConfigwhere
JavaConfig: Default,
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 JavaConfig
impl RefUnwindSafe for JavaConfig
impl Send for JavaConfig
impl Sync for JavaConfig
impl Unpin for JavaConfig
impl UnwindSafe for JavaConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more