pub struct SchemaBucketDef {
pub name: String,
pub access: String,
pub max_object_bytes: Option<u64>,
pub allowed_mime_types: Option<Vec<String>>,
}Expand description
A single bucket definition from the compiled schema.
Fields§
§name: StringBucket name — must be a valid identifier (alphanumeric, hyphens, underscores; no spaces).
access: StringAccess policy: "private" (default) or "public_read".
max_object_bytes: Option<u64>Maximum object size in bytes. None means unlimited.
allowed_mime_types: Option<Vec<String>>Allowed MIME types. None means any MIME type is accepted.
Trait Implementations§
Source§impl Clone for SchemaBucketDef
impl Clone for SchemaBucketDef
Source§fn clone(&self) -> SchemaBucketDef
fn clone(&self) -> SchemaBucketDef
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 SchemaBucketDef
impl Debug for SchemaBucketDef
Source§impl<'de> Deserialize<'de> for SchemaBucketDef
impl<'de> Deserialize<'de> for SchemaBucketDef
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 SchemaBucketDef
impl RefUnwindSafe for SchemaBucketDef
impl Send for SchemaBucketDef
impl Sync for SchemaBucketDef
impl Unpin for SchemaBucketDef
impl UnsafeUnpin for SchemaBucketDef
impl UnwindSafe for SchemaBucketDef
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
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 more