pub struct ImageAnalyzerConfiguration { /* private fields */ }Expand description
Represents a VisionKit image analyzer configuration.
Implementations§
Source§impl ImageAnalyzerConfiguration
impl ImageAnalyzerConfiguration
Sourcepub fn new(analysis_types: ImageAnalysisTypes) -> Self
pub fn new(analysis_types: ImageAnalysisTypes) -> Self
Creates the VisionKit ImageAnalyzerConfiguration wrapper.
Sourcepub fn analysis_types(&self) -> ImageAnalysisTypes
pub fn analysis_types(&self) -> ImageAnalysisTypes
Returns the configured VisionKit analysis types.
Sourcepub fn with_locales<I, S>(self, locales: I) -> Self
pub fn with_locales<I, S>(self, locales: I) -> Self
Returns this VisionKit analyzer configuration with the provided locales.
Trait Implementations§
Source§impl Clone for ImageAnalyzerConfiguration
impl Clone for ImageAnalyzerConfiguration
Source§impl Debug for ImageAnalyzerConfiguration
impl Debug for ImageAnalyzerConfiguration
Source§impl<'de> Deserialize<'de> for ImageAnalyzerConfiguration
impl<'de> Deserialize<'de> for ImageAnalyzerConfiguration
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
impl Eq for ImageAnalyzerConfiguration
impl StructuralPartialEq for ImageAnalyzerConfiguration
Auto Trait Implementations§
impl Forget for ImageAnalyzerConfiguration
impl Freeze for ImageAnalyzerConfiguration
impl Move for ImageAnalyzerConfiguration
impl RefUnwindSafe for ImageAnalyzerConfiguration
impl Send for ImageAnalyzerConfigurationwhere
RawVecInner: Send,
impl Sync for ImageAnalyzerConfigurationwhere
RawVecInner: Sync,
impl Unpin for ImageAnalyzerConfiguration
impl UnsafeUnpin for ImageAnalyzerConfiguration
impl UnwindSafe for ImageAnalyzerConfigurationwhere
RawVecInner: UnwindSafe,
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