#[non_exhaustive]pub struct AnnotationSpec {
pub name: String,
pub display_name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub etag: String,
/* private fields */
}Expand description
Identifies a concept with which DataItems may be annotated with.
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.name: StringOutput only. Resource name of the AnnotationSpec.
display_name: StringRequired. The user-defined name of the AnnotationSpec. The name can be up to 128 characters long and can consist of any UTF-8 characters.
create_time: Option<Timestamp>Output only. Timestamp when this AnnotationSpec was created.
update_time: Option<Timestamp>Output only. Timestamp when AnnotationSpec was last updated.
etag: StringOptional. Used to perform consistent read-modify-write updates. If not set, a blind “overwrite” update happens.
Implementations§
Source§impl AnnotationSpec
impl AnnotationSpec
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
Trait Implementations§
Source§impl Clone for AnnotationSpec
impl Clone for AnnotationSpec
Source§fn clone(&self) -> AnnotationSpec
fn clone(&self) -> AnnotationSpec
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 Debug for AnnotationSpec
impl Debug for AnnotationSpec
Source§impl Default for AnnotationSpec
impl Default for AnnotationSpec
Source§fn default() -> AnnotationSpec
fn default() -> AnnotationSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnnotationSpecwhere
AnnotationSpec: Default,
impl<'de> Deserialize<'de> for AnnotationSpecwhere
AnnotationSpec: Default,
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
Source§impl Message for AnnotationSpec
impl Message for AnnotationSpec
Source§impl PartialEq for AnnotationSpec
impl PartialEq for AnnotationSpec
Source§impl Serialize for AnnotationSpec
impl Serialize for AnnotationSpec
impl StructuralPartialEq for AnnotationSpec
Auto Trait Implementations§
impl Freeze for AnnotationSpec
impl RefUnwindSafe for AnnotationSpec
impl Send for AnnotationSpec
impl Sync for AnnotationSpec
impl Unpin for AnnotationSpec
impl UnwindSafe for AnnotationSpec
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