pub struct CreateOrganizationRequest {
pub name: String,
pub industry: i32,
pub company_size: i32,
pub access_code: String,
pub data_governance_region: String,
pub fixture_id: String,
}Expand description
Request to create a new organization. JWT auth only — the authenticated caller becomes the initial admin. Additional admins are added via CreateInviteLink after the org exists.
Fields§
§name: StringName for the new organization. Constraints: Max length 200 characters.
industry: i32Industry vertical for the organization.
company_size: i32Employee headcount range.
access_code: StringAccess code required during early access. Format: PIDGR-XXXXXXXX (8 alphanumeric characters).
data_governance_region: StringData governance framework. Defaults to “US” if omitted. Valid values: EU, LATAM, BR, APAC, US.
fixture_id: StringOptional bootstrap fixture to seed the organization with starter data. Empty string means the default fixture.
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 (const: unstable) · 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
impl Eq 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.Source§impl PartialEq for CreateOrganizationRequest
impl PartialEq for CreateOrganizationRequest
Source§fn eq(&self, other: &CreateOrganizationRequest) -> bool
fn eq(&self, other: &CreateOrganizationRequest) -> bool
self and other values to be equal, and is used by ==.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