pub struct Organization {
pub id: String,
pub name: String,
pub default_workflow: Option<WorkflowDefinition>,
pub created_at: Option<Timestamp>,
pub industry: i32,
pub company_size: i32,
pub sso_attribute_mappings: Vec<SsoAttributeMapping>,
pub default_locale: String,
}Expand description
An organization (tenant) in the Pidgr platform.
Fields§
§id: StringUnique identifier for the organization.
name: StringOrganization display name. Constraints: Max length 200 characters.
default_workflow: Option<WorkflowDefinition>Default workflow used when campaigns don’t specify one.
created_at: Option<Timestamp>Timestamp when the organization was created.
industry: i32Industry vertical.
company_size: i32Employee headcount range.
sso_attribute_mappings: Vec<SsoAttributeMapping>SSO identity provider claim-to-profile mappings. Empty when the organization does not use SSO.
default_locale: StringDefault language for new users in this organization. Empty means no org default (users auto-detect from device/browser). Valid values: en, es, pt-BR, zh, ja.
Implementations§
Source§impl Organization
impl Organization
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 Organization
impl Clone for Organization
Source§fn clone(&self) -> Organization
fn clone(&self) -> Organization
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Organization
impl Debug for Organization
Source§impl Default for Organization
impl Default for Organization
Source§impl Message for Organization
impl Message for Organization
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 Organization
impl PartialEq for Organization
impl StructuralPartialEq for Organization
Auto Trait Implementations§
impl Freeze for Organization
impl RefUnwindSafe for Organization
impl Send for Organization
impl Sync for Organization
impl Unpin for Organization
impl UnsafeUnpin for Organization
impl UnwindSafe for Organization
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<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