#[non_exhaustive]pub struct Reply {
pub summary: Option<Summary>,
/* private fields */
}Available on crate feature
conversational-search-service only.Expand description
Defines a reply message to user.
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.summary: Option<Summary>Summary based on search results.
Implementations§
Source§impl Reply
impl Reply
pub fn new() -> Self
Sourcepub fn set_summary<T>(self, v: T) -> Self
pub fn set_summary<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_summary<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_summary<T>(self, v: Option<T>) -> Self
Trait Implementations§
impl StructuralPartialEq for Reply
Auto Trait Implementations§
impl Freeze for Reply
impl RefUnwindSafe for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnwindSafe for Reply
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