[][src]Struct wascc_codec::extras::GeneratorRequest

pub struct GeneratorRequest {
    pub gentype: i32,
    pub min: u32,
    pub max: u32,
}

Fields

gentype: i32min: u32max: u32

only used for random

Methods

impl GeneratorRequest[src]

pub fn gentype(&self) -> GeneratorType[src]

Returns the enum value of gentype, or the default if the field is set to an invalid enum value.

pub fn set_gentype(&mut self, value: GeneratorType)[src]

Sets gentype to the provided enum value.

Trait Implementations

impl Clone for GeneratorRequest[src]

impl Debug for GeneratorRequest[src]

impl Default for GeneratorRequest[src]

impl<'_> Into<GeneratorRequest> for &'_ [u8][src]

impl Message for GeneratorRequest[src]

impl PartialEq<GeneratorRequest> for GeneratorRequest[src]

impl StructuralPartialEq for GeneratorRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.