pub struct CatalogGenerator { /* private fields */ }Expand description
Generates catalog items from active contracts.
Implementations§
Source§impl CatalogGenerator
impl CatalogGenerator
Sourcepub fn with_config(seed: u64, config: CatalogConfig) -> Self
pub fn with_config(seed: u64, config: CatalogConfig) -> Self
Create with custom configuration.
Sourcepub fn generate(
&mut self,
contracts: &[ProcurementContract],
) -> Vec<CatalogItem>
pub fn generate( &mut self, contracts: &[ProcurementContract], ) -> Vec<CatalogItem>
Generate catalog items from a list of active contracts.
Auto Trait Implementations§
impl !Freeze for CatalogGenerator
impl RefUnwindSafe for CatalogGenerator
impl Send for CatalogGenerator
impl Sync for CatalogGenerator
impl Unpin for CatalogGenerator
impl UnsafeUnpin for CatalogGenerator
impl UnwindSafe for CatalogGenerator
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