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

pub struct GeneratorRequest {
    pub guid: bool,
    pub sequence: bool,
    pub random: bool,
    pub min: u32,
    pub max: u32,
}

A request for the generation of numbers that standalone actors cannot normally produce because they require random numbers or cryptography libraries. This struct has been flattened and avoids enum variants to maintain a high level of msgpack serialization compatibility with other languages and parsers.

Fields

guid: bool

Indicates a request for a GUID

sequence: bool

Indicates a request for a sequence number

random: bool

Indicates a request for a random number

min: u32

Minimum value for a random number request

max: u32

Maximum value for a random number request

Trait Implementations

impl Debug for GeneratorRequest[src]

impl<'de> Deserialize<'de> for GeneratorRequest[src]

impl PartialEq<GeneratorRequest> for GeneratorRequest[src]

impl Serialize 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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.