pub struct CustomPreviewBuilder { /* private fields */ }Expand description
Builder for CustomPreview.
Implementations§
Source§impl CustomPreviewBuilder
impl CustomPreviewBuilder
Sourcepub fn header<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn header<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject.
Sourcepub fn body_getter_id<VALUE: Into<RemoteObjectId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn body_getter_id<VALUE: Into<RemoteObjectId>>( &mut self, value: VALUE, ) -> &mut Self
If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. The result value is json ML array.
Sourcepub fn build(&self) -> Result<CustomPreview, CustomPreviewBuilderError>
pub fn build(&self) -> Result<CustomPreview, CustomPreviewBuilderError>
Trait Implementations§
Source§impl Clone for CustomPreviewBuilder
impl Clone for CustomPreviewBuilder
Source§fn clone(&self) -> CustomPreviewBuilder
fn clone(&self) -> CustomPreviewBuilder
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 CustomPreviewBuilder
impl RefUnwindSafe for CustomPreviewBuilder
impl Send for CustomPreviewBuilder
impl Sync for CustomPreviewBuilder
impl Unpin for CustomPreviewBuilder
impl UnsafeUnpin for CustomPreviewBuilder
impl UnwindSafe for CustomPreviewBuilder
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