#[non_exhaustive]pub struct TerminateSessionRequest {
pub name: String,
pub request_id: String,
/* private fields */
}
Expand description
A request to terminate an interactive session.
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: String
Required. The name of the session resource to terminate.
request_id: String
Optional. A unique ID used to identify the request. If the service receives two TerminateSessionRequests with the same ID, the second request is ignored.
Recommendation: Set this value to a UUID.
The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Implementations§
Trait Implementations§
Source§impl Clone for TerminateSessionRequest
impl Clone for TerminateSessionRequest
Source§fn clone(&self) -> TerminateSessionRequest
fn clone(&self) -> TerminateSessionRequest
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 TerminateSessionRequest
impl Debug for TerminateSessionRequest
Source§impl Default for TerminateSessionRequest
impl Default for TerminateSessionRequest
Source§fn default() -> TerminateSessionRequest
fn default() -> TerminateSessionRequest
Returns the “default value” for a type. Read more
Source§impl Message for TerminateSessionRequest
impl Message for TerminateSessionRequest
Source§impl PartialEq for TerminateSessionRequest
impl PartialEq for TerminateSessionRequest
impl StructuralPartialEq for TerminateSessionRequest
Auto Trait Implementations§
impl Freeze for TerminateSessionRequest
impl RefUnwindSafe for TerminateSessionRequest
impl Send for TerminateSessionRequest
impl Sync for TerminateSessionRequest
impl Unpin for TerminateSessionRequest
impl UnwindSafe for TerminateSessionRequest
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