pub struct CreateContentInput {
pub creator_id: Uuid,
pub title: String,
pub description: Option<String>,
pub category: ContentCategory,
pub tags: Vec<String>,
pub cid: String,
pub size_bytes: u64,
pub chunk_count: u64,
pub encryption_key: Option<Vec<u8>>,
pub price: u64,
}Expand description
Input type for creating content from shared type.
Fields§
§creator_id: Uuid§title: String§description: Option<String>§category: ContentCategory§cid: String§size_bytes: u64§chunk_count: u64§encryption_key: Option<Vec<u8>>§price: u64Trait Implementations§
Source§impl Clone for CreateContentInput
impl Clone for CreateContentInput
Source§fn clone(&self) -> CreateContentInput
fn clone(&self) -> CreateContentInput
Returns a duplicate 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 CreateContentInput
impl Debug for CreateContentInput
Source§impl From<&ContentMetadata> for CreateContentInput
impl From<&ContentMetadata> for CreateContentInput
Source§fn from(metadata: &ContentMetadata) -> Self
fn from(metadata: &ContentMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateContentInput
impl RefUnwindSafe for CreateContentInput
impl Send for CreateContentInput
impl Sync for CreateContentInput
impl Unpin for CreateContentInput
impl UnwindSafe for CreateContentInput
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