#[non_exhaustive]pub struct LinkMetadata {
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub state: OperationState,
pub request: Option<Request>,
/* private fields */
}Expand description
Metadata for long running Link operations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start_time: Option<Timestamp>The start time of an operation.
end_time: Option<Timestamp>The end time of an operation.
state: OperationStateState of an operation.
request: Option<Request>Implementations§
Source§impl LinkMetadata
impl LinkMetadata
pub fn new() -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_state<T: Into<OperationState>>(self, v: T) -> Self
pub fn set_state<T: Into<OperationState>>(self, v: T) -> Self
Sets the value of state.
Sourcepub fn set_request<T: Into<Option<Request>>>(self, v: T) -> Self
pub fn set_request<T: Into<Option<Request>>>(self, v: T) -> Self
Sets the value of request.
Note that all the setters affecting request are mutually
exclusive.
Sourcepub fn create_link_request(&self) -> Option<&Box<CreateLinkRequest>>
pub fn create_link_request(&self) -> Option<&Box<CreateLinkRequest>>
The value of request
if it holds a CreateLinkRequest, None if the field is not set or
holds a different branch.
Sourcepub fn set_create_link_request<T: Into<Box<CreateLinkRequest>>>(
self,
v: T,
) -> Self
pub fn set_create_link_request<T: Into<Box<CreateLinkRequest>>>( self, v: T, ) -> Self
Sets the value of request
to hold a CreateLinkRequest.
Note that all the setters affecting request are
mutually exclusive.
Sourcepub fn delete_link_request(&self) -> Option<&Box<DeleteLinkRequest>>
pub fn delete_link_request(&self) -> Option<&Box<DeleteLinkRequest>>
The value of request
if it holds a DeleteLinkRequest, None if the field is not set or
holds a different branch.
Sourcepub fn set_delete_link_request<T: Into<Box<DeleteLinkRequest>>>(
self,
v: T,
) -> Self
pub fn set_delete_link_request<T: Into<Box<DeleteLinkRequest>>>( self, v: T, ) -> Self
Sets the value of request
to hold a DeleteLinkRequest.
Note that all the setters affecting request are
mutually exclusive.
Trait Implementations§
Source§impl Clone for LinkMetadata
impl Clone for LinkMetadata
Source§fn clone(&self) -> LinkMetadata
fn clone(&self) -> LinkMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more