Commerce
Module to generate commerce related data.
Overview
Capable of generating serveral commerce related data such as departments, materials and products.
department
Returns a random commerce department.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::business::commerce::department())
}
//Books
View Source (opens in a new tab)
product_adjective
Returns a random product adjective.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::business::commerce::product_adjective())
}
//Ergonomic
View Source (opens in a new tab)
material
Returns a random material.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::business::commerce::material())
}
//Plastic
View Source (opens in a new tab)
product
Returns a random product.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::business::commerce::product())
}
//Chair
View Source (opens in a new tab)
promotion_code_adjective
Returns a random promotion code adjective.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::business::commerce::promotion_code_adjective())
}
//Special
View Source (opens in a new tab)
promotion_code_noun
Returns a random promotion code noun.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::business::commerce::promotion_code_noun())
}
//Discount
View Source (opens in a new tab)
brand_commerce
Returns a random commerce brand.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::business::commerce::brand_commerce())
}
//Samsung
View Source (opens in a new tab)
vendor
Returns a random commerce vendor.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::business::commerce::vendor())
}
//Amazon
View Source (opens in a new tab)
full_promotion_code
Returns combined string with a promotion code adjective and noun.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::business::commerce::full_promotion_code())
}
//Special Discount