Animal
Module to generate animal related data.
Overview
For a general type of animal (e.g. 'dog'
), use animal().
Otherwise, use one of the more specific methods, such as cat() for a specific breed of cat.
All values may be localized.
bear
Returns a random bear species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::bear::bear())
}
View Source (opens in a new tab)
bird
Returns a random bird species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::bird::bird())
}
View Source (opens in a new tab)
cat
Returns a random cat species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::cat::cat())
}
View Source (opens in a new tab)
cetacean
Returns a random cetacean species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::cetacean::cetacean())
}
View Source (opens in a new tab)
cow
Returns a random cow species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::cow::cow())
}
View Source (opens in a new tab)
crocodilia
Returns a random crocodilia species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::crocodilia::crocodilia())
}
View Source (opens in a new tab)
dog
Returns a random dog species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::dog::dog())
}
View Source (opens in a new tab)
fish
Returns a random fish species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::fish::fish())
}
View Source (opens in a new tab)
horse
Returns a random horse species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::horse::horse())
}
View Source (opens in a new tab)
insect
Returns a random insect species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::insect::insect())
}
View Source (opens in a new tab)
lion
Returns a random lion species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::lion::lion())
}
View Source (opens in a new tab)
rabbit
Returns a random rabbit species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::rabbit::rabbit())
}
View Source (opens in a new tab)
rodent
Returns a random rodent species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::rodent::rodent())
}
View Source (opens in a new tab)
snake
Returns a random snake species.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::snake::snake())
}
View Source (opens in a new tab)
animal
Returns a random animal.
Returns: string
use data_faking::locales::en as faking;
fn main() {
println!("{}", faking::animal::animals::animal())
}