[][src]Struct dbus_codegen::GenOpts

pub struct GenOpts {
    pub dbuscrate: String,
    pub methodtype: Option<String>,
    pub crhandler: Option<String>,
    pub skipprefix: Option<String>,
    pub serveraccess: ServerAccess,
    pub genericvariant: bool,
    pub futures: bool,
    pub connectiontype: ConnectionType,
    pub propnewtype: bool,
    pub interfaces: Option<HashSet<String>>,
    pub command_line: String,
}

Code generation options

Fields

dbuscrate: String

Name of dbus crate (used for import)

methodtype: Option<String>

MethodType for server tree impl, set to none for client impl only

crhandler: Option<String>

Crossroads server handler type, set to none for client impl only

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>

futures: bool

Generates code to work with async / futures 0.3

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

impl Clone for GenOpts[src]

impl Debug for GenOpts[src]

impl Default for GenOpts[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.