#[non_exhaustive]pub struct DetectAnomaliesInput {
pub project_name: Option<String>,
pub model_version: Option<String>,
pub body: ByteStream,
pub content_type: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.project_name: Option<String>The name of the project that contains the model version that you want to use.
model_version: Option<String>The version of the model that you want to use.
body: ByteStreamThe unencrypted image bytes that you want to analyze.
content_type: Option<String>The type of the image passed in Body. Valid values are image/png (PNG format images) and image/jpeg (JPG format images).
Implementations§
source§impl DetectAnomaliesInput
impl DetectAnomaliesInput
sourcepub fn project_name(&self) -> Option<&str>
pub fn project_name(&self) -> Option<&str>
The name of the project that contains the model version that you want to use.
sourcepub fn model_version(&self) -> Option<&str>
pub fn model_version(&self) -> Option<&str>
The version of the model that you want to use.
sourcepub fn body(&self) -> &ByteStream
pub fn body(&self) -> &ByteStream
The unencrypted image bytes that you want to analyze.
sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
The type of the image passed in Body. Valid values are image/png (PNG format images) and image/jpeg (JPG format images).
source§impl DetectAnomaliesInput
impl DetectAnomaliesInput
sourcepub fn builder() -> DetectAnomaliesInputBuilder
pub fn builder() -> DetectAnomaliesInputBuilder
Creates a new builder-style object to manufacture DetectAnomaliesInput.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DetectAnomaliesInput
impl Send for DetectAnomaliesInput
impl Sync for DetectAnomaliesInput
impl Unpin for DetectAnomaliesInput
impl !UnwindSafe for DetectAnomaliesInput
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>
Creates a shared type from an unshared type.