pub struct CreateOrganizationRequest {
pub name: String,
pub admin_email: String,
pub industry: i32,
pub company_size: i32,
pub access_code: String,
}Expand description
Request to create a new organization with an admin user. Supports API key auth (service-to-service) and JWT auth (self-service onboarding).
Fields§
§name: StringName for the new organization. Constraints: Max length 200 characters.
admin_email: StringEmail address for the initial admin user. Only used with API key auth; ignored with JWT auth (email derived from identity provider subject).
industry: i32Industry vertical for the organization.
company_size: i32Employee headcount range.
access_code: StringAccess code required during early access (JWT auth only). Ignored with API key auth. Format: PIDGR-XXXXXXXX (8 alphanumeric characters).
Implementations§
Source§impl CreateOrganizationRequest
impl CreateOrganizationRequest
Sourcepub fn industry(&self) -> Industry
pub fn industry(&self) -> Industry
Returns the enum value of industry, or the default if the field is set to an invalid enum value.
Sourcepub fn set_industry(&mut self, value: Industry)
pub fn set_industry(&mut self, value: Industry)
Sets industry to the provided enum value.
Sourcepub fn company_size(&self) -> CompanySize
pub fn company_size(&self) -> CompanySize
Returns the enum value of company_size, or the default if the field is set to an invalid enum value.
Sourcepub fn set_company_size(&mut self, value: CompanySize)
pub fn set_company_size(&mut self, value: CompanySize)
Sets company_size to the provided enum value.
Trait Implementations§
Source§impl Clone for CreateOrganizationRequest
impl Clone for CreateOrganizationRequest
Source§fn clone(&self) -> CreateOrganizationRequest
fn clone(&self) -> CreateOrganizationRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateOrganizationRequest
impl Debug for CreateOrganizationRequest
Source§impl Default for CreateOrganizationRequest
impl Default for CreateOrganizationRequest
Source§impl Hash for CreateOrganizationRequest
impl Hash for CreateOrganizationRequest
Source§impl Message for CreateOrganizationRequest
impl Message for CreateOrganizationRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.impl Eq for CreateOrganizationRequest
impl StructuralPartialEq for CreateOrganizationRequest
Auto Trait Implementations§
impl Freeze for CreateOrganizationRequest
impl RefUnwindSafe for CreateOrganizationRequest
impl Send for CreateOrganizationRequest
impl Sync for CreateOrganizationRequest
impl Unpin for CreateOrganizationRequest
impl UnsafeUnpin for CreateOrganizationRequest
impl UnwindSafe for CreateOrganizationRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
T in a tonic::Request