#[non_exhaustive]pub struct SearchEntryPoint {
pub rendered_content: String,
pub sdk_blob: Bytes,
/* private fields */
}Available on crate features
prediction-service or session-service only.Expand description
Google search entry point.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rendered_content: StringOptional. Web content snippet that can be embedded in a web page or an app webview.
sdk_blob: BytesOptional. Base64 encoded JSON representing array of <search term, search url> tuple.
Implementations§
Source§impl SearchEntryPoint
impl SearchEntryPoint
pub fn new() -> Self
Sourcepub fn set_rendered_content<T: Into<String>>(self, v: T) -> Self
pub fn set_rendered_content<T: Into<String>>(self, v: T) -> Self
Sets the value of rendered_content.
§Example
ⓘ
let x = SearchEntryPoint::new().set_rendered_content("example");Trait Implementations§
Source§impl Clone for SearchEntryPoint
impl Clone for SearchEntryPoint
Source§fn clone(&self) -> SearchEntryPoint
fn clone(&self) -> SearchEntryPoint
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 SearchEntryPoint
impl Debug for SearchEntryPoint
Source§impl Default for SearchEntryPoint
impl Default for SearchEntryPoint
Source§fn default() -> SearchEntryPoint
fn default() -> SearchEntryPoint
Returns the “default value” for a type. Read more
Source§impl Message for SearchEntryPoint
impl Message for SearchEntryPoint
Source§impl PartialEq for SearchEntryPoint
impl PartialEq for SearchEntryPoint
impl StructuralPartialEq for SearchEntryPoint
Auto Trait Implementations§
impl !Freeze for SearchEntryPoint
impl RefUnwindSafe for SearchEntryPoint
impl Send for SearchEntryPoint
impl Sync for SearchEntryPoint
impl Unpin for SearchEntryPoint
impl UnsafeUnpin for SearchEntryPoint
impl UnwindSafe for SearchEntryPoint
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