pub struct LargestContentfulPaintBuilder { /* private fields */ }Expand description
Builder for LargestContentfulPaint.
Implementations§
Source§impl LargestContentfulPaintBuilder
impl LargestContentfulPaintBuilder
pub fn render_time<VALUE: Into<TimeSinceEpoch>>( &mut self, value: VALUE, ) -> &mut Self
pub fn load_time<VALUE: Into<TimeSinceEpoch>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn size<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn size<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
The number of pixels being painted.
Sourcepub fn element_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn element_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The id attribute of the element, if available.
Sourcepub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The URL of the image (may be trimmed).
pub fn node_id<VALUE: Into<BackendNodeId>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<LargestContentfulPaint, LargestContentfulPaintBuilderError>
pub fn build( &self, ) -> Result<LargestContentfulPaint, LargestContentfulPaintBuilderError>
Trait Implementations§
Source§impl Clone for LargestContentfulPaintBuilder
impl Clone for LargestContentfulPaintBuilder
Source§fn clone(&self) -> LargestContentfulPaintBuilder
fn clone(&self) -> LargestContentfulPaintBuilder
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 LargestContentfulPaintBuilder
impl RefUnwindSafe for LargestContentfulPaintBuilder
impl Send for LargestContentfulPaintBuilder
impl Sync for LargestContentfulPaintBuilder
impl Unpin for LargestContentfulPaintBuilder
impl UnsafeUnpin for LargestContentfulPaintBuilder
impl UnwindSafe for LargestContentfulPaintBuilder
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