pub struct ScreenshotBuilder { /* private fields */ }Expand description
Builder for Screenshot.
Implementations§
Source§impl ScreenshotBuilder
impl ScreenshotBuilder
pub fn image<VALUE: Into<ImageResource>>(&mut self, value: VALUE) -> &mut Self
pub fn form_factor<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn label<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<Screenshot, ScreenshotBuilderError>
pub fn build(&self) -> Result<Screenshot, ScreenshotBuilderError>
Trait Implementations§
Source§impl Clone for ScreenshotBuilder
impl Clone for ScreenshotBuilder
Source§fn clone(&self) -> ScreenshotBuilder
fn clone(&self) -> ScreenshotBuilder
Returns a duplicate 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 Freeze for ScreenshotBuilder
impl RefUnwindSafe for ScreenshotBuilder
impl Send for ScreenshotBuilder
impl Sync for ScreenshotBuilder
impl Unpin for ScreenshotBuilder
impl UnsafeUnpin for ScreenshotBuilder
impl UnwindSafe for ScreenshotBuilder
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