pub struct CreateTenantConfig {
pub id: TenantId,
pub name: String,
pub env: String,
pub db_name: String,
pub db_role_name: String,
pub db_secret_name: Option<String>,
pub db_iam_user: bool,
pub storage_bucket_name: String,
pub storage_cors_origins: Vec<String>,
pub storage_s3_queue_arn: Option<String>,
pub search_index_name: String,
pub event_queue_url: Option<String>,
}Expand description
Request to create a tenant
Fields§
§id: TenantIdUnique ID for the tenant
name: StringName of the tenant
env: StringEnvironment of the tenant
db_name: StringDatabase name for the tenant
db_role_name: StringName for the tenant role
db_secret_name: Option<String>Database secret credentials name for the tenant (Where the username and password will be stored)
db_iam_user: boolWhether to use IAM for role authorization instead of a database secret
storage_bucket_name: StringName of the tenant storage bucket
storage_cors_origins: Vec<String>CORS Origins for setting up presigned uploads with S3
storage_s3_queue_arn: Option<String>ARN for the S3 queue to publish S3 notifications, required for presigned uploads
search_index_name: StringName of the tenant search index
event_queue_url: Option<String>URL for the SQS event queue
Trait Implementations§
Source§impl Clone for CreateTenantConfig
impl Clone for CreateTenantConfig
Source§fn clone(&self) -> CreateTenantConfig
fn clone(&self) -> CreateTenantConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateTenantConfig
impl Debug for CreateTenantConfig
Source§impl<'de> Deserialize<'de> for CreateTenantConfig
impl<'de> Deserialize<'de> for CreateTenantConfig
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
Auto Trait Implementations§
impl Freeze for CreateTenantConfig
impl RefUnwindSafe for CreateTenantConfig
impl Send for CreateTenantConfig
impl Sync for CreateTenantConfig
impl Unpin for CreateTenantConfig
impl UnsafeUnpin for CreateTenantConfig
impl UnwindSafe for CreateTenantConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.