Struct google_datalabeling1_beta1::api::GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
source · pub struct GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation {
pub annotation_colors: Option<HashMap<String, GoogleCloudDatalabelingV1beta1AnnotationSpec>>,
pub image_bytes: Option<Vec<u8>>,
pub mime_type: Option<String>,
}
Expand description
Image segmentation annotation.
This type is not used in any activity, and only used as part of another schema.
Fields§
§annotation_colors: Option<HashMap<String, GoogleCloudDatalabelingV1beta1AnnotationSpec>>
The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec.
image_bytes: Option<Vec<u8>>
A byte string of a full image’s color map.
mime_type: Option<String>
Image format.
Trait Implementations§
source§impl Clone for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
impl Clone for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
source§fn clone(&self) -> GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
fn clone(&self) -> GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
impl Default for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
source§fn default() -> GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
fn default() -> GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
impl<'de> Deserialize<'de> for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
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 Part for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
Auto Trait Implementations§
impl RefUnwindSafe for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
impl Send for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
impl Sync for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
impl Unpin for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
impl UnwindSafe for GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
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