#[non_exhaustive]pub struct SafeSearchAnnotation {
pub adult: Likelihood,
pub spoof: Likelihood,
pub medical: Likelihood,
pub violence: Likelihood,
pub racy: Likelihood,
/* private fields */
}Expand description
Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.adult: LikelihoodRepresents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.
spoof: LikelihoodSpoof likelihood. The likelihood that an modification was made to the image’s canonical version to make it appear funny or offensive.
medical: LikelihoodLikelihood that this is a medical image.
violence: LikelihoodLikelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals.
racy: LikelihoodLikelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas.
Implementations§
Source§impl SafeSearchAnnotation
impl SafeSearchAnnotation
pub fn new() -> Self
Sourcepub fn set_adult<T: Into<Likelihood>>(self, v: T) -> Self
pub fn set_adult<T: Into<Likelihood>>(self, v: T) -> Self
Sets the value of adult.
Sourcepub fn set_spoof<T: Into<Likelihood>>(self, v: T) -> Self
pub fn set_spoof<T: Into<Likelihood>>(self, v: T) -> Self
Sets the value of spoof.
Sourcepub fn set_medical<T: Into<Likelihood>>(self, v: T) -> Self
pub fn set_medical<T: Into<Likelihood>>(self, v: T) -> Self
Sets the value of medical.
Sourcepub fn set_violence<T: Into<Likelihood>>(self, v: T) -> Self
pub fn set_violence<T: Into<Likelihood>>(self, v: T) -> Self
Sets the value of violence.
Sourcepub fn set_racy<T: Into<Likelihood>>(self, v: T) -> Self
pub fn set_racy<T: Into<Likelihood>>(self, v: T) -> Self
Sets the value of racy.
Trait Implementations§
Source§impl Clone for SafeSearchAnnotation
impl Clone for SafeSearchAnnotation
Source§fn clone(&self) -> SafeSearchAnnotation
fn clone(&self) -> SafeSearchAnnotation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more