pub struct AddAlternativeFileRequest {
pub resource: u32,
pub name: String,
pub description: Option<String>,
pub file_name: Option<String>,
pub file_extension: Option<String>,
pub file_size: Option<u64>,
pub alt_type: Option<String>,
pub file: Option<String>,
}Fields§
§resource: u32The ID of the resource to attach the alternative file to.
name: StringDisplay name for the alternative file.
description: Option<String>Optional description of the alternative file.
file_name: Option<String>Original file name of the alternative file.
file_extension: Option<String>File extension of the alternative file (e.g. "pdf").
file_size: Option<u64>Size of the file in bytes.
alt_type: Option<String>Alternative file type identifier used to categorise the file.
file: Option<String>Local server path or publicly accessible URL of the file to attach.
Implementations§
Source§impl AddAlternativeFileRequest
impl AddAlternativeFileRequest
pub fn new(resource: u32, name: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn file_name(self, file_name: impl Into<String>) -> Self
pub fn file_extension(self, file_extension: impl Into<String>) -> Self
pub fn file_size(self, file_size: u64) -> Self
pub fn alt_type(self, alt_type: impl Into<String>) -> Self
pub fn file(self, file: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for AddAlternativeFileRequest
impl Clone for AddAlternativeFileRequest
Source§fn clone(&self) -> AddAlternativeFileRequest
fn clone(&self) -> AddAlternativeFileRequest
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 AddAlternativeFileRequest
impl Debug for AddAlternativeFileRequest
impl StructuralPartialEq for AddAlternativeFileRequest
Auto Trait Implementations§
impl Freeze for AddAlternativeFileRequest
impl RefUnwindSafe for AddAlternativeFileRequest
impl Send for AddAlternativeFileRequest
impl Sync for AddAlternativeFileRequest
impl Unpin for AddAlternativeFileRequest
impl UnsafeUnpin for AddAlternativeFileRequest
impl UnwindSafe for AddAlternativeFileRequest
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