[][src]Trait odata_client_codegen::EntityModelFilter

pub trait EntityModelFilter { }

Implemented by types which can specify the entity model item for which to generate client code. See the implementors which can be used as arguments for code generation functions (e.g. generate_module, write_module_build_artifact).

Choosing to not specify any filtering type will included all items in an Entity Data Model document.

Implicit inclusions

Certain items, when explicitly included, will also implicitly pull in other items as dependencies.

Entity Types/Complex Types

Explicitly included Entity Types and Complex Types will implicitly include any Complex Types, Enum Types, and primitive Type Definitions used in their property fields in the generated code.

Navigation property types for an Entity Type/Complex Type will be implicitly included, either as a full definition, or as a "stub". The full definition is generated if the navigation property is a "containment" property, or the navigation property type is explicitly included itself. Navigation property types which are included as a stub will be generated as a unit struct.

Navigation property fields with stubbed entity types will be generated as EntityLinkStubs. Navigation property fields for included entity types will be EntityLinks.

Any Entity/Complex types in the explicitly included type's inheritance ancestry will also be included, along with their own dependencies.

Entity Sets/Singletons

Explicitly included Entity Sets and Singletons will implicitly include the Entity Type of the set, plus the implicit dependencies for that Entity Type.

Enum types

Explicitly included enum types do not pull in any dependencies.

Primitive Type Definitions

Excplicitly included primitive type definitions do not pull in any dependencies.

Implementors

impl<'a> EntityModelFilter for ItemNameWhitelist<'a>[src]

Loading content...