[][src]Struct odata_client_codegen::ItemNameWhitelist

pub struct ItemNameWhitelist<'a> { /* fields omitted */ }

Implementations

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

Specifies which Entity Data Model items to include by supplying lists of names of items to be included. Used in code generation functions, e.g. write_module_build_artifact).

use odata_client_codegen::ItemNameWhitelist;

// Specifies that only entity sets, singletons and enum types with these names - and their
// dependencies - should be included in a generated code module.
let mut item_filter = ItemNameWhitelist::new()
    .with_entity_sets(vec!["Foo"])
    .with_singletons(vec!["Bar", "Baz"])
    .with_enum_types(vec!["Qux"]);

See EntityModelFilter for more information about selecting code generation items.

pub fn new() -> Self[src]

pub fn with_entity_sets(
    mut self: Self,
    names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
[src]

pub fn with_singletons(
    mut self: Self,
    names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
[src]

pub fn with_entity_types(
    mut self: Self,
    names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
[src]

pub fn with_complex_types(
    mut self: Self,
    names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
[src]

pub fn with_primitive_aliases(
    mut self: Self,
    names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
[src]

pub fn with_enum_types(
    mut self: Self,
    names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
[src]

Trait Implementations

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

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

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

impl<'a> EntityModelFilter for ItemNameWhitelist<'a>[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.