pub struct CreateOrganizationRequest {
pub name: String,
pub created_by: String,
pub private_metadata: Option<Value>,
pub public_metadata: Option<Value>,
pub slug: Option<String>,
pub max_allowed_memberships: Option<i64>,
}Fields§
§name: StringThe name of the new organization
created_by: StringThe ID of the User who will become the administrator for the new organization
private_metadata: Option<Value>Metadata saved on the organization, accessible only from the Backend API
public_metadata: Option<Value>Metadata saved on the organization, read-only from the Frontend API and fully accessible (read/write) from the Backend API
slug: Option<String>A slug for the new organization. Can contain only lowercase alphanumeric characters and the dash "-". Must be unique for the instance.
max_allowed_memberships: Option<i64>The maximum number of memberships allowed for this organization
Implementations§
Source§impl CreateOrganizationRequest
impl CreateOrganizationRequest
pub fn new(name: String, created_by: String) -> CreateOrganizationRequest
Trait Implementations§
Source§impl Clone for CreateOrganizationRequest
impl Clone for CreateOrganizationRequest
Source§fn clone(&self) -> CreateOrganizationRequest
fn clone(&self) -> CreateOrganizationRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateOrganizationRequest
impl Debug for CreateOrganizationRequest
Source§impl<'de> Deserialize<'de> for CreateOrganizationRequest
impl<'de> Deserialize<'de> for CreateOrganizationRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 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
Mutably borrows from an owned value. Read more