pub struct UpdateInfo {
pub version_available: Option<String>,
pub download_size: Option<u64>,
}
Expand description
Wrapper type for fidl_fuchsia_update::UpdateInfo
which works with
[proptest
].
Use From
(and Into
) to convert between the fidl type and this one.
Fields§
§version_available: Option<String>
§download_size: Option<u64>
Trait Implementations§
Source§impl Arbitrary for UpdateInfo
impl Arbitrary for UpdateInfo
Source§type Parameters = <Option<u64> as Arbitrary>::Parameters
type Parameters = <Option<u64> 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<(BoxedStrategy<Option<String>>, <Option<u64> as Arbitrary>::Strategy), fn(_: (Option<String>, Option<u64>)) -> UpdateInfo>
type Strategy = Map<(BoxedStrategy<Option<String>>, <Option<u64> as Arbitrary>::Strategy), fn(_: (Option<String>, Option<u64>)) -> UpdateInfo>
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 Clone for UpdateInfo
impl Clone for UpdateInfo
Source§fn clone(&self) -> UpdateInfo
fn clone(&self) -> UpdateInfo
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 moreSource§impl Debug for UpdateInfo
impl Debug for UpdateInfo
Source§impl From<UpdateInfo> for UpdateInfo
impl From<UpdateInfo> for UpdateInfo
Source§fn from(other: UpdateInfo) -> Self
fn from(other: UpdateInfo) -> Self
Converts to this type from the input type.
Source§impl From<UpdateInfo> for UpdateInfo
impl From<UpdateInfo> for UpdateInfo
Source§fn from(info: UpdateInfo) -> Self
fn from(info: UpdateInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UpdateInfo
impl PartialEq for UpdateInfo
impl StructuralPartialEq for UpdateInfo
Auto Trait Implementations§
impl Freeze for UpdateInfo
impl RefUnwindSafe for UpdateInfo
impl Send for UpdateInfo
impl Sync for UpdateInfo
impl Unpin for UpdateInfo
impl UnwindSafe for UpdateInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)