[−][src]Struct odata_client_codegen::ItemNameWhitelist
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]
mut self: Self,
names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
pub fn with_singletons(
mut self: Self,
names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
[src]
mut self: Self,
names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
pub fn with_entity_types(
mut self: Self,
names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
[src]
mut self: Self,
names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
pub fn with_complex_types(
mut self: Self,
names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
[src]
mut self: Self,
names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
pub fn with_primitive_aliases(
mut self: Self,
names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
[src]
mut self: Self,
names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
pub fn with_enum_types(
mut self: Self,
names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
[src]
mut self: Self,
names: impl IntoIterator<Item = impl Into<&'a str>>
) -> Self
Trait Implementations
impl<'a> Clone for ItemNameWhitelist<'a>
[src]
pub fn clone(&self) -> ItemNameWhitelist<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for ItemNameWhitelist<'a>
[src]
impl<'a> Default for ItemNameWhitelist<'a>
[src]
pub fn default() -> ItemNameWhitelist<'a>
[src]
impl<'a> EntityModelFilter for ItemNameWhitelist<'a>
[src]
pub fn include_entity_set(&mut self, entity_set: &EntitySet<'_>) -> bool
[src]
pub fn include_singleton(&mut self, singleton: &Singleton<'_>) -> bool
[src]
pub fn include_entity_type(&mut self, entity_type: &EntityType<'_>) -> bool
[src]
pub fn include_complex_type(&mut self, complex_type: &ComplexType<'_>) -> bool
[src]
pub fn include_primitive_alias(
&mut self,
primitive_alias: &PrimitiveTypeAlias<'_>
) -> bool
[src]
&mut self,
primitive_alias: &PrimitiveTypeAlias<'_>
) -> bool
pub fn include_enum_type(&mut self, enum_type: &EnumType<'_>) -> bool
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ItemNameWhitelist<'a>
[src]
impl<'a> Send for ItemNameWhitelist<'a>
[src]
impl<'a> Sync for ItemNameWhitelist<'a>
[src]
impl<'a> Unpin for ItemNameWhitelist<'a>
[src]
impl<'a> UnwindSafe for ItemNameWhitelist<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,