#[non_exhaustive]pub struct AttributedItem {
pub annotation_resource_name: String,
pub distance: f64,
/* private fields */
}Available on crate feature
model-service only.Expand description
Attributed items for a given annotation, typically representing neighbors from the training sets constrained by the query type.
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.annotation_resource_name: StringThe unique ID for each annotation. Used by FE to allocate the annotation in DB.
distance: f64The distance of this item to the annotation.
Implementations§
Source§impl AttributedItem
impl AttributedItem
pub fn new() -> Self
Sourcepub fn set_annotation_resource_name<T: Into<String>>(self, v: T) -> Self
pub fn set_annotation_resource_name<T: Into<String>>(self, v: T) -> Self
Sets the value of annotation_resource_name.
§Example
ⓘ
let x = AttributedItem::new().set_annotation_resource_name("example");Trait Implementations§
Source§impl Clone for AttributedItem
impl Clone for AttributedItem
Source§fn clone(&self) -> AttributedItem
fn clone(&self) -> AttributedItem
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 AttributedItem
impl Debug for AttributedItem
Source§impl Default for AttributedItem
impl Default for AttributedItem
Source§fn default() -> AttributedItem
fn default() -> AttributedItem
Returns the “default value” for a type. Read more
Source§impl Message for AttributedItem
impl Message for AttributedItem
Source§impl PartialEq for AttributedItem
impl PartialEq for AttributedItem
impl StructuralPartialEq for AttributedItem
Auto Trait Implementations§
impl Freeze for AttributedItem
impl RefUnwindSafe for AttributedItem
impl Send for AttributedItem
impl Sync for AttributedItem
impl Unpin for AttributedItem
impl UnwindSafe for AttributedItem
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