pub struct CheckDuplicateBody {
pub title: String,
pub content: String,
pub namespace: Option<String>,
pub threshold: Option<f32>,
}Expand description
Request body for POST /api/v1/check_duplicate (Pillar 2 / Stream D).
Fields§
§title: String§content: String§namespace: Option<String>Restrict the duplicate scan to this namespace. Omit to scan all namespaces.
threshold: Option<f32>Cosine similarity threshold for declaring a duplicate. Clamped
to >= 0.5 inside db::check_duplicate. Defaults to the tuned
DUPLICATE_THRESHOLD_DEFAULT when omitted.
Trait Implementations§
Source§impl Debug for CheckDuplicateBody
impl Debug for CheckDuplicateBody
Source§impl<'de> Deserialize<'de> for CheckDuplicateBody
impl<'de> Deserialize<'de> for CheckDuplicateBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CheckDuplicateBody
impl RefUnwindSafe for CheckDuplicateBody
impl Send for CheckDuplicateBody
impl Sync for CheckDuplicateBody
impl Unpin for CheckDuplicateBody
impl UnsafeUnpin for CheckDuplicateBody
impl UnwindSafe for CheckDuplicateBody
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more