#[non_exhaustive]pub struct ObjectCustomContextPayload {
pub value: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
/* private fields */
}Expand description
The payload of a single user-defined object context.
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.value: StringRequired. The value of the object context.
create_time: Option<Timestamp>Output only. The time at which the object context was created.
update_time: Option<Timestamp>Output only. The time at which the object context was last updated.
Implementations§
Source§impl ObjectCustomContextPayload
impl ObjectCustomContextPayload
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Trait Implementations§
Source§impl Clone for ObjectCustomContextPayload
impl Clone for ObjectCustomContextPayload
Source§fn clone(&self) -> ObjectCustomContextPayload
fn clone(&self) -> ObjectCustomContextPayload
Returns a duplicate 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 ObjectCustomContextPayload
impl Debug for ObjectCustomContextPayload
Source§impl Default for ObjectCustomContextPayload
impl Default for ObjectCustomContextPayload
Source§fn default() -> ObjectCustomContextPayload
fn default() -> ObjectCustomContextPayload
Returns the “default value” for a type. Read more
Source§impl Message for ObjectCustomContextPayload
impl Message for ObjectCustomContextPayload
impl StructuralPartialEq for ObjectCustomContextPayload
Auto Trait Implementations§
impl Freeze for ObjectCustomContextPayload
impl RefUnwindSafe for ObjectCustomContextPayload
impl Send for ObjectCustomContextPayload
impl Sync for ObjectCustomContextPayload
impl Unpin for ObjectCustomContextPayload
impl UnwindSafe for ObjectCustomContextPayload
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
Wrap the input message
T in a tonic::Request