pub struct ScreenshotOptions { /* private fields */ }Expand description
What screenshot and screenshot_markdown show, as JSON-shaped values like the gallery’s Options. Build
them with ScreenshotOptions::new and the setters, or ScreenshotOptions::from_json.
Implementations§
Source§impl ScreenshotOptions
impl ScreenshotOptions
Sourcepub fn new(screen: &str) -> Self
pub fn new(screen: &str) -> Self
The screen, by its key (overview, ios/sessions), as the gallery’s screens and order name it.
Sourcepub fn from_json(value: &Value) -> Result<Self, Error>
pub fn from_json(value: &Value) -> Result<Self, Error>
Options from a JSON object with the contract’s names.
Sourcepub fn group(self, name: &str) -> Self
pub fn group(self, name: &str) -> Self
The group it’s in. Default: the first group that has the screen.
Sourcepub fn theme(self, theme: &str) -> Self
pub fn theme(self, theme: &str) -> Self
The theme value to show. Default: the screen’s first, with its dark shot for readers whose setting is dark.
Sourcepub fn size(self, size: &str) -> Self
pub fn size(self, size: &str) -> Self
The size value to show. Default: the screen’s first that has the theme.
Trait Implementations§
Source§impl Clone for ScreenshotOptions
impl Clone for ScreenshotOptions
Source§impl Debug for ScreenshotOptions
impl Debug for ScreenshotOptions
Auto Trait Implementations§
impl Forget for ScreenshotOptions
impl Freeze for ScreenshotOptions
impl Move for ScreenshotOptions
impl RefUnwindSafe for ScreenshotOptions
impl Send for ScreenshotOptions
impl Sync for ScreenshotOptions
impl Unpin for ScreenshotOptions
impl UnsafeUnpin for ScreenshotOptionswhere
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for ScreenshotOptions
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