pub struct ContentMetadataBuilder { /* private fields */ }Expand description
Builder for ContentMetadata.
Implementations§
Source§impl ContentMetadataBuilder
impl ContentMetadataBuilder
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description.
Sourcepub fn category(self, category: ContentCategory) -> Self
pub fn category(self, category: ContentCategory) -> Self
Set the category.
Set the tags.
Sourcepub fn size_bytes(self, size: Bytes) -> Self
pub fn size_bytes(self, size: Bytes) -> Self
Set the size in bytes.
Sourcepub fn chunk_count(self, count: u64) -> Self
pub fn chunk_count(self, count: u64) -> Self
Set the chunk count (auto-calculated if not set).
Sourcepub fn creator_id(self, creator_id: Uuid) -> Self
pub fn creator_id(self, creator_id: Uuid) -> Self
Set the creator ID.
Sourcepub fn status(self, status: ContentStatus) -> Self
pub fn status(self, status: ContentStatus) -> Self
Set the status.
Sourcepub fn preview_images(self, images: Vec<String>) -> Self
pub fn preview_images(self, images: Vec<String>) -> Self
Set preview images.
Trait Implementations§
Source§impl Debug for ContentMetadataBuilder
impl Debug for ContentMetadataBuilder
Source§impl Default for ContentMetadataBuilder
impl Default for ContentMetadataBuilder
Source§fn default() -> ContentMetadataBuilder
fn default() -> ContentMetadataBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContentMetadataBuilder
impl RefUnwindSafe for ContentMetadataBuilder
impl Send for ContentMetadataBuilder
impl Sync for ContentMetadataBuilder
impl Unpin for ContentMetadataBuilder
impl UnwindSafe for ContentMetadataBuilder
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