#[non_exhaustive]pub struct CitationSource {
pub reference_id: String,
/* private fields */
}Available on crate features
conversational-search-service or session-service only.Expand description
Citation source.
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.reference_id: StringID of the citation source.
Implementations§
Source§impl CitationSource
impl CitationSource
pub fn new() -> Self
Sourcepub fn set_reference_id<T: Into<String>>(self, v: T) -> Self
pub fn set_reference_id<T: Into<String>>(self, v: T) -> Self
Sets the value of reference_id.
§Example
ⓘ
let x = CitationSource::new().set_reference_id("example");Trait Implementations§
Source§impl Clone for CitationSource
impl Clone for CitationSource
Source§fn clone(&self) -> CitationSource
fn clone(&self) -> CitationSource
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 CitationSource
impl Debug for CitationSource
Source§impl Default for CitationSource
impl Default for CitationSource
Source§fn default() -> CitationSource
fn default() -> CitationSource
Returns the “default value” for a type. Read more
Source§impl Message for CitationSource
impl Message for CitationSource
Source§impl PartialEq for CitationSource
impl PartialEq for CitationSource
impl StructuralPartialEq for CitationSource
Auto Trait Implementations§
impl Freeze for CitationSource
impl RefUnwindSafe for CitationSource
impl Send for CitationSource
impl Sync for CitationSource
impl Unpin for CitationSource
impl UnwindSafe for CitationSource
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