pub struct GenOpts {
pub dbuscrate: String,
pub methodtype: Option<String>,
pub crossroads: bool,
pub skipprefix: Option<String>,
pub serveraccess: ServerAccess,
pub genericvariant: bool,
pub connectiontype: ConnectionType,
pub propnewtype: bool,
pub interfaces: Option<HashSet<String>>,
pub command_line: String,
}
Expand description
Code generation options
Fields§
§dbuscrate: String
Name of dbus crate (used for import)
methodtype: Option<String>
MethodType for dbus-tree impl, set to none for client impl only
crossroads: bool
Generate dbus-crossroads server implementation
skipprefix: Option<String>
Removes a prefix from interface names
serveraccess: ServerAccess
Type of server access (tree)
genericvariant: bool
Tries to make variants generic instead of Variant<Box
connectiontype: ConnectionType
Type of connection, for client only
propnewtype: bool
Generates a struct wrapping PropMap to get properties from it with their expected types.
interfaces: Option<HashSet<String>>
interface filter. Only matching interface are generated, if non-empty.
command_line: String
The command line argument string. This will be inserted into generated source files.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenOpts
impl RefUnwindSafe for GenOpts
impl Send for GenOpts
impl Sync for GenOpts
impl Unpin for GenOpts
impl UnwindSafe for GenOpts
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