pub struct RegisterDeviceRequestBuilder {
pub categories: Vec<String>,
pub organization_id: Option<String>,
pub account_id: Option<String>,
pub account_secret: Option<String>,
pub is_new_user: bool,
pub is_invited: bool,
pub role_id: Option<String>,
pub account_organization_status: Option<String>,
pub account_organization_categories: Vec<String>,
pub device_categories: Vec<String>,
pub device_id: Option<String>,
}Fields§
§categories: Vec<String>§organization_id: Option<String>§account_id: Option<String>§account_secret: Option<String>§is_new_user: bool§is_invited: bool§role_id: Option<String>§account_organization_status: Option<String>§account_organization_categories: Vec<String>§device_categories: Vec<String>§device_id: Option<String>Implementations§
Source§impl RegisterDeviceRequestBuilder
impl RegisterDeviceRequestBuilder
pub fn new() -> Self
pub fn device_id(self, device_id: impl Into<String>) -> Self
pub fn add_category(self, category: impl Into<String>) -> Self
pub fn organization_id(self, id: impl Into<String>) -> Self
pub fn account_id(self, id: impl Into<String>) -> Self
pub fn account_secret(self, secret: impl Into<String>) -> Self
pub fn set_is_new_user(self, flag: bool) -> Self
pub fn set_is_invited(self, flag: bool) -> Self
pub fn role_id(self, id: impl Into<String>) -> Self
pub fn account_organization_status(self, status: impl Into<String>) -> Self
pub fn add_account_organization_category( self, category: impl Into<String>, ) -> Self
pub fn add_device_category(self, category: impl Into<String>) -> Self
pub fn build(self) -> RegisterDeviceRequest
Trait Implementations§
Source§impl Debug for RegisterDeviceRequestBuilder
impl Debug for RegisterDeviceRequestBuilder
Source§impl Default for RegisterDeviceRequestBuilder
impl Default for RegisterDeviceRequestBuilder
Source§fn default() -> RegisterDeviceRequestBuilder
fn default() -> RegisterDeviceRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RegisterDeviceRequestBuilder
impl RefUnwindSafe for RegisterDeviceRequestBuilder
impl Send for RegisterDeviceRequestBuilder
impl Sync for RegisterDeviceRequestBuilder
impl Unpin for RegisterDeviceRequestBuilder
impl UnwindSafe for RegisterDeviceRequestBuilder
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> 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