pub struct User { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Arbitrary for User
impl Arbitrary for User
Source§type Parameters = (<String as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<QIpv4Net> as Arbitrary>::Parameters, <Option<Ipv4Addr> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<QIpv6Net> as Arbitrary>::Parameters, <Option<Ipv6Addr> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, (<Option<Ipv4Addr> as Arbitrary>::Parameters, <Option<Ipv4Addr> as Arbitrary>::Parameters, <Option<Ipv6Addr> as Arbitrary>::Parameters, <Option<Vec<String>> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<SMB> as Arbitrary>::Parameters, (<Option<Vec<HostForward>> as Arbitrary>::Parameters, <Option<Vec<GuestForward>> as Arbitrary>::Parameters)))
type Parameters = (<String as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<QIpv4Net> as Arbitrary>::Parameters, <Option<Ipv4Addr> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<QIpv6Net> as Arbitrary>::Parameters, <Option<Ipv6Addr> as Arbitrary>::Parameters, <Option<OnOff> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, (<Option<Ipv4Addr> as Arbitrary>::Parameters, <Option<Ipv4Addr> as Arbitrary>::Parameters, <Option<Ipv6Addr> as Arbitrary>::Parameters, <Option<Vec<String>> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <Option<SMB> as Arbitrary>::Parameters, (<Option<Vec<HostForward>> as Arbitrary>::Parameters, <Option<Vec<GuestForward>> as Arbitrary>::Parameters)))
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<QIpv4Net> as Arbitrary>::Strategy, <Option<Ipv4Addr> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<QIpv6Net> as Arbitrary>::Strategy, <Option<Ipv6Addr> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, (<Option<Ipv4Addr> as Arbitrary>::Strategy, <Option<Ipv4Addr> as Arbitrary>::Strategy, <Option<Ipv6Addr> as Arbitrary>::Strategy, <Option<Vec<String>> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<SMB> as Arbitrary>::Strategy, (<Option<Vec<HostForward>> as Arbitrary>::Strategy, <Option<Vec<GuestForward>> as Arbitrary>::Strategy))), fn((String, Option<OnOff>, Option<QIpv4Net>, Option<Ipv4Addr>, Option<OnOff>, Option<QIpv6Net>, Option<Ipv6Addr>, Option<OnOff>, Option<String>, (Option<Ipv4Addr>, Option<Ipv4Addr>, Option<Ipv6Addr>, Option<Vec<String>>, Option<String>, Option<PathBuf>, Option<String>, Option<PathBuf>, Option<SMB>, (Option<Vec<HostForward>>, Option<Vec<GuestForward>>)))) -> User>
type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<QIpv4Net> as Arbitrary>::Strategy, <Option<Ipv4Addr> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<QIpv6Net> as Arbitrary>::Strategy, <Option<Ipv6Addr> as Arbitrary>::Strategy, <Option<OnOff> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, (<Option<Ipv4Addr> as Arbitrary>::Strategy, <Option<Ipv4Addr> as Arbitrary>::Strategy, <Option<Ipv6Addr> as Arbitrary>::Strategy, <Option<Vec<String>> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<PathBuf> as Arbitrary>::Strategy, <Option<SMB> as Arbitrary>::Strategy, (<Option<Vec<HostForward>> as Arbitrary>::Strategy, <Option<Vec<GuestForward>> as Arbitrary>::Strategy))), fn((String, Option<OnOff>, Option<QIpv4Net>, Option<Ipv4Addr>, Option<OnOff>, Option<QIpv6Net>, Option<Ipv6Addr>, Option<OnOff>, Option<String>, (Option<Ipv4Addr>, Option<Ipv4Addr>, Option<Ipv6Addr>, Option<Vec<String>>, Option<String>, Option<PathBuf>, Option<String>, Option<PathBuf>, Option<SMB>, (Option<Vec<HostForward>>, Option<Vec<GuestForward>>)))) -> User>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Ord for User
impl Ord for User
Source§impl PartialOrd for User
impl PartialOrd for User
Source§impl ToCommand for User
impl ToCommand for User
Source§fn to_args(&self) -> Vec<String>
fn to_args(&self) -> Vec<String>
Convert to a type suitable to pass to
std::process::Command::args()fn has_args(&self) -> bool
Source§fn command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()Source§fn to_command(&self) -> Vec<String>
fn to_command(&self) -> Vec<String>
Construct the full command in keep in pieces
Source§fn to_single_command(&self) -> String
fn to_single_command(&self) -> String
Construct the full command as a single
StringSource§fn to_single_arg(&self) -> String
fn to_single_arg(&self) -> String
Construct only the args as a single
Stringimpl Eq for User
impl StructuralPartialEq for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin for User
impl UnwindSafe for User
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