Skip to main content

Fixture

Trait Fixture 

Source
pub trait Fixture: Sized {
    // Required method
    fn fixture(seed: &mut Seed) -> Self;
}

Required Methods§

Source

fn fixture(seed: &mut Seed) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Fixture for String

Source§

fn fixture(seed: &mut Seed) -> Self

Source§

impl Fixture for Uuid

Source§

fn fixture(seed: &mut Seed) -> Self

Source§

impl Fixture for bool

Source§

fn fixture(seed: &mut Seed) -> Self

Source§

impl Fixture for i16

Source§

fn fixture(seed: &mut Seed) -> Self

Source§

impl Fixture for i32

Source§

fn fixture(seed: &mut Seed) -> Self

Source§

impl Fixture for i64

Source§

fn fixture(seed: &mut Seed) -> Self

Source§

impl Fixture for u16

Source§

fn fixture(seed: &mut Seed) -> Self

Source§

impl Fixture for u32

Source§

fn fixture(seed: &mut Seed) -> Self

Source§

impl<T: Fixture> Fixture for Option<T>

Source§

fn fixture(seed: &mut Seed) -> Self

Source§

impl<T: Fixture> Fixture for Vec<T>

Source§

fn fixture(seed: &mut Seed) -> Self

Implementors§

Source§

impl Fixture for Coordinate

Source§

impl Fixture for Currency

Source§

impl Fixture for Date

Source§

impl Fixture for Email

example.com never reaches anyone.

Source§

impl Fixture for Instant

A whole second, as a database stores it exactly.

Source§

impl Fixture for LocalDateTime

Source§

impl Fixture for Locale

Source§

impl Fixture for Money

Source§

impl Fixture for Percentage

Source§

impl Fixture for PersonName

Source§

impl Fixture for PhoneNumber

In the range kept for drama, so it rings nobody.

Source§

impl Fixture for Slug

Source§

impl Fixture for TimeOfDay

Source§

impl Fixture for TimeZone

Source§

impl Fixture for Url

example.com serves nobody’s real pages.

Source§

impl Fixture for Weekday

Source§

impl<T: Fixture> Fixture for Secret<T>

Source§

impl<U: Unit> Fixture for Measurement<U>