pub struct GetAnnotatedPageContentReturnObjectBuilder { /* private fields */ }Expand description
Builder for GetAnnotatedPageContentReturnObject.
Implementations§
Source§impl GetAnnotatedPageContentReturnObjectBuilder
impl GetAnnotatedPageContentReturnObjectBuilder
Sourcepub fn content(&mut self, value: String) -> &mut Self
pub fn content(&mut self, value: String) -> &mut Self
The annotated page content as a base64 encoded protobuf.
The format is defined by the AnnotatedPageContent message in
components/optimization_guide/proto/features/common_quality_data.proto
Sourcepub fn build(
&self,
) -> Result<GetAnnotatedPageContentReturnObject, GetAnnotatedPageContentReturnObjectBuilderError>
pub fn build( &self, ) -> Result<GetAnnotatedPageContentReturnObject, GetAnnotatedPageContentReturnObjectBuilderError>
Builds a new GetAnnotatedPageContentReturnObject.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for GetAnnotatedPageContentReturnObjectBuilder
impl Clone for GetAnnotatedPageContentReturnObjectBuilder
Source§fn clone(&self) -> GetAnnotatedPageContentReturnObjectBuilder
fn clone(&self) -> GetAnnotatedPageContentReturnObjectBuilder
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 GetAnnotatedPageContentReturnObjectBuilder
impl RefUnwindSafe for GetAnnotatedPageContentReturnObjectBuilder
impl Send for GetAnnotatedPageContentReturnObjectBuilder
impl Sync for GetAnnotatedPageContentReturnObjectBuilder
impl Unpin for GetAnnotatedPageContentReturnObjectBuilder
impl UnsafeUnpin for GetAnnotatedPageContentReturnObjectBuilder
impl UnwindSafe for GetAnnotatedPageContentReturnObjectBuilder
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