pub struct CustomPreview { /* private fields */ }Available on crate features
Runtime and experimental only.Implementations§
Source§impl CustomPreview
impl CustomPreview
pub fn new(header: String, body_getter_id: Option<RemoteObjectId>) -> Self
Sourcepub fn header(&self) -> &str
pub fn header(&self) -> &str
The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject.
Sourcepub fn body_getter_id(&self) -> Option<&RemoteObjectId>
pub fn body_getter_id(&self) -> Option<&RemoteObjectId>
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.
Trait Implementations§
Source§impl Clone for CustomPreview
impl Clone for CustomPreview
Source§fn clone(&self) -> CustomPreview
fn clone(&self) -> CustomPreview
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 moreSource§impl Debug for CustomPreview
impl Debug for CustomPreview
Source§impl<'de> Deserialize<'de> for CustomPreview
impl<'de> Deserialize<'de> for CustomPreview
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CustomPreview
impl RefUnwindSafe for CustomPreview
impl Send for CustomPreview
impl Sync for CustomPreview
impl Unpin for CustomPreview
impl UnwindSafe for CustomPreview
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