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.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 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