#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct Attendee {
pub external_user_id: ::std::option::Option<::std::string::String>,
pub attendee_id: ::std::option::Option<::std::string::String>,
pub join_token: ::std::option::Option<::std::string::String>,
}
impl Attendee {
pub fn external_user_id(&self) -> ::std::option::Option<&str> {
self.external_user_id.as_deref()
}
pub fn attendee_id(&self) -> ::std::option::Option<&str> {
self.attendee_id.as_deref()
}
pub fn join_token(&self) -> ::std::option::Option<&str> {
self.join_token.as_deref()
}
}
impl ::std::fmt::Debug for Attendee {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("Attendee");
formatter.field("external_user_id", &"*** Sensitive Data Redacted ***");
formatter.field("attendee_id", &self.attendee_id);
formatter.field("join_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl Attendee {
pub fn builder() -> crate::types::builders::AttendeeBuilder {
crate::types::builders::AttendeeBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct AttendeeBuilder {
pub(crate) external_user_id: ::std::option::Option<::std::string::String>,
pub(crate) attendee_id: ::std::option::Option<::std::string::String>,
pub(crate) join_token: ::std::option::Option<::std::string::String>,
}
impl AttendeeBuilder {
pub fn external_user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.external_user_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_external_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.external_user_id = input;
self
}
pub fn get_external_user_id(&self) -> &::std::option::Option<::std::string::String> {
&self.external_user_id
}
pub fn attendee_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.attendee_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_attendee_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.attendee_id = input;
self
}
pub fn get_attendee_id(&self) -> &::std::option::Option<::std::string::String> {
&self.attendee_id
}
pub fn join_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.join_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_join_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.join_token = input;
self
}
pub fn get_join_token(&self) -> &::std::option::Option<::std::string::String> {
&self.join_token
}
pub fn build(self) -> crate::types::Attendee {
crate::types::Attendee {
external_user_id: self.external_user_id,
attendee_id: self.attendee_id,
join_token: self.join_token,
}
}
}
impl ::std::fmt::Debug for AttendeeBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("AttendeeBuilder");
formatter.field("external_user_id", &"*** Sensitive Data Redacted ***");
formatter.field("attendee_id", &self.attendee_id);
formatter.field("join_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}