Struct google_api_proto::google::cloud::vision::v1p2beta1::SafeSearchAnnotation
source · pub struct SafeSearchAnnotation {
pub adult: i32,
pub spoof: i32,
pub medical: i32,
pub violence: i32,
pub racy: i32,
}
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§
§adult: i32
Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.
spoof: i32
Spoof likelihood. The likelihood that an modification was made to the image’s canonical version to make it appear funny or offensive.
medical: i32
Likelihood that this is a medical image.
violence: i32
Likelihood that this image contains violent content.
racy: i32
Likelihood 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
sourcepub fn adult(&self) -> Likelihood
pub fn adult(&self) -> Likelihood
Returns the enum value of adult
, or the default if the field is set to an invalid enum value.
sourcepub fn set_adult(&mut self, value: Likelihood)
pub fn set_adult(&mut self, value: Likelihood)
Sets adult
to the provided enum value.
sourcepub fn spoof(&self) -> Likelihood
pub fn spoof(&self) -> Likelihood
Returns the enum value of spoof
, or the default if the field is set to an invalid enum value.
sourcepub fn set_spoof(&mut self, value: Likelihood)
pub fn set_spoof(&mut self, value: Likelihood)
Sets spoof
to the provided enum value.
sourcepub fn medical(&self) -> Likelihood
pub fn medical(&self) -> Likelihood
Returns the enum value of medical
, or the default if the field is set to an invalid enum value.
sourcepub fn set_medical(&mut self, value: Likelihood)
pub fn set_medical(&mut self, value: Likelihood)
Sets medical
to the provided enum value.
sourcepub fn violence(&self) -> Likelihood
pub fn violence(&self) -> Likelihood
Returns the enum value of violence
, or the default if the field is set to an invalid enum value.
sourcepub fn set_violence(&mut self, value: Likelihood)
pub fn set_violence(&mut self, value: Likelihood)
Sets violence
to the provided enum value.
sourcepub fn racy(&self) -> Likelihood
pub fn racy(&self) -> Likelihood
Returns the enum value of racy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_racy(&mut self, value: Likelihood)
pub fn set_racy(&mut self, value: Likelihood)
Sets racy
to the provided enum value.
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 moresource§impl Debug for SafeSearchAnnotation
impl Debug for SafeSearchAnnotation
source§impl Default for SafeSearchAnnotation
impl Default for SafeSearchAnnotation
source§impl Message for SafeSearchAnnotation
impl Message for SafeSearchAnnotation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SafeSearchAnnotation
impl PartialEq for SafeSearchAnnotation
source§fn eq(&self, other: &SafeSearchAnnotation) -> bool
fn eq(&self, other: &SafeSearchAnnotation) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for SafeSearchAnnotation
impl StructuralPartialEq for SafeSearchAnnotation
Auto Trait Implementations§
impl Freeze for SafeSearchAnnotation
impl RefUnwindSafe for SafeSearchAnnotation
impl Send for SafeSearchAnnotation
impl Sync for SafeSearchAnnotation
impl Unpin for SafeSearchAnnotation
impl UnwindSafe for SafeSearchAnnotation
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request