pub struct ObjectMetadata {
pub name: String,
pub description: Option<String>,
pub chunk_size: Option<usize>,
}
Expand description
Meta information about an object.
Fields§
§name: String
Name of the object
description: Option<String>
A short human readable description of the object.
chunk_size: Option<usize>
Max chunk size. Default is 128k.
Trait Implementations§
source§impl Clone for ObjectMetadata
impl Clone for ObjectMetadata
source§fn clone(&self) -> ObjectMetadata
fn clone(&self) -> ObjectMetadata
Returns a copy of the value. Read more
1.6.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 ObjectMetadata
impl Debug for ObjectMetadata
source§impl Default for ObjectMetadata
impl Default for ObjectMetadata
source§fn default() -> ObjectMetadata
fn default() -> ObjectMetadata
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ObjectMetadata
impl<'de> Deserialize<'de> for ObjectMetadata
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
source§impl From<&str> for ObjectMetadata
impl From<&str> for ObjectMetadata
source§fn from(s: &str) -> ObjectMetadata
fn from(s: &str) -> ObjectMetadata
Converts to this type from the input type.
source§impl From<ObjectInfo> for ObjectMetadata
impl From<ObjectInfo> for ObjectMetadata
source§fn from(info: ObjectInfo) -> Self
fn from(info: ObjectInfo) -> Self
Converts to this type from the input type.
source§impl PartialEq for ObjectMetadata
impl PartialEq for ObjectMetadata
source§impl Serialize for ObjectMetadata
impl Serialize for ObjectMetadata
impl Eq for ObjectMetadata
impl StructuralPartialEq for ObjectMetadata
Auto Trait Implementations§
impl Freeze for ObjectMetadata
impl RefUnwindSafe for ObjectMetadata
impl Send for ObjectMetadata
impl Sync for ObjectMetadata
impl Unpin for ObjectMetadata
impl UnwindSafe for ObjectMetadata
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)