pub struct ArbitraryGenerator {
id_generator: OsRng,
}
Fields§
§id_generator: OsRng
Implementations§
source§impl ArbitraryGenerator
impl ArbitraryGenerator
pub fn new() -> Self
pub fn random_index(&mut self, limit: usize) -> usize
pub fn random_size(&mut self) -> usize
pub fn bytes(&mut self) -> [u8; 32]
pub fn next_u32(&mut self) -> u32
pub fn next_u64(&mut self) -> u64
pub fn next_i32(&mut self) -> i32
pub fn token_hash(&mut self) -> String
pub fn id(&mut self) -> i32
pub fn token(&mut self) -> (String, ApiTokenData)
pub fn tokens(&mut self) -> HashMap<String, ApiTokenData>
pub fn hash(&mut self) -> String
pub fn vote_plan_def(&mut self) -> VotePlanDef
pub fn vote_plan_def_collection(&mut self) -> Vec<VotePlanDef>
pub fn valid_vote_plan_parameters(&mut self) -> ValidVotePlanParameters
Trait Implementations§
source§impl Clone for ArbitraryGenerator
impl Clone for ArbitraryGenerator
source§fn clone(&self) -> ArbitraryGenerator
fn clone(&self) -> ArbitraryGenerator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ArbitraryGenerator
impl Send for ArbitraryGenerator
impl Sync for ArbitraryGenerator
impl Unpin for ArbitraryGenerator
impl UnwindSafe for ArbitraryGenerator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more