#[non_exhaustive]pub struct Connection {
pub connection_id: String,
pub state: State,
pub update_time: Option<Timestamp>,
pub error_details: Option<ErrorDetails>,
/* private fields */
}Available on crate feature
sip-trunks only.Expand description
Represents a connection for SIP Trunk.
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.connection_id: StringOutput only. The unique identifier of the SIP Trunk connection.
state: StateOutput only. State of the connection.
update_time: Option<Timestamp>Output only. When the connection status changed.
error_details: Option<ErrorDetails>Output only. The error details for the connection. Only populated when authentication errors occur.
Implementations§
Source§impl Connection
impl Connection
pub fn new() -> Self
Sourcepub fn set_connection_id<T: Into<String>>(self, v: T) -> Self
pub fn set_connection_id<T: Into<String>>(self, v: T) -> Self
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.
§Example
ⓘ
use wkt::Timestamp;
let x = Connection::new().set_update_time(Timestamp::default()/* use setters */);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.
§Example
ⓘ
use wkt::Timestamp;
let x = Connection::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Connection::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_error_details<T>(self, v: T) -> Selfwhere
T: Into<ErrorDetails>,
pub fn set_error_details<T>(self, v: T) -> Selfwhere
T: Into<ErrorDetails>,
Sets the value of error_details.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::connection::ErrorDetails;
let x = Connection::new().set_error_details(ErrorDetails::default()/* use setters */);Sourcepub fn set_or_clear_error_details<T>(self, v: Option<T>) -> Selfwhere
T: Into<ErrorDetails>,
pub fn set_or_clear_error_details<T>(self, v: Option<T>) -> Selfwhere
T: Into<ErrorDetails>,
Sets or clears the value of error_details.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::connection::ErrorDetails;
let x = Connection::new().set_or_clear_error_details(Some(ErrorDetails::default()/* use setters */));
let x = Connection::new().set_or_clear_error_details(None::<ErrorDetails>);Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
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 Connection
impl Debug for Connection
Source§impl Default for Connection
impl Default for Connection
Source§fn default() -> Connection
fn default() -> Connection
Returns the “default value” for a type. Read more
Source§impl PartialEq for Connection
impl PartialEq for Connection
impl StructuralPartialEq for Connection
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
impl UnwindSafe for Connection
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