Set the relevance score
(mut self, score: f32)
| 212 | |
| 213 | /// Set the relevance score |
| 214 | pub fn with_relevance(mut self, score: f32) -> Self { |
| 215 | self.relevance = score.clamp(0.0, 1.0); |
| 216 | self |
| 217 | } |
| 218 | |
| 219 | /// Set the source URI |
| 220 | pub fn with_source(mut self, source: impl Into<String>) -> Self { |
no outgoing calls