pub struct Base64PdfSource {
pub data: String,
pub media_type: String,
}Expand description
Represents a base64-encoded PDF source.
This can be created from either a base64-encoded string or from a file path. The media_type is always “application/pdf”.
Fields§
§data: StringThe base64-encoded data of the PDF
media_type: StringThe media type of the file (always “application/pdf”)
Implementations§
Trait Implementations§
Source§impl Clone for Base64PdfSource
impl Clone for Base64PdfSource
Source§fn clone(&self) -> Base64PdfSource
fn clone(&self) -> Base64PdfSource
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 Base64PdfSource
impl Debug for Base64PdfSource
Source§impl<'de> Deserialize<'de> for Base64PdfSource
impl<'de> Deserialize<'de> for Base64PdfSource
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<Base64PdfSource> for DocumentSource
impl From<Base64PdfSource> for DocumentSource
Source§fn from(source: Base64PdfSource) -> Self
fn from(source: Base64PdfSource) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Base64PdfSource
impl PartialEq for Base64PdfSource
Source§impl Serialize for Base64PdfSource
impl Serialize for Base64PdfSource
impl StructuralPartialEq for Base64PdfSource
Auto Trait Implementations§
impl Freeze for Base64PdfSource
impl RefUnwindSafe for Base64PdfSource
impl Send for Base64PdfSource
impl Sync for Base64PdfSource
impl Unpin for Base64PdfSource
impl UnsafeUnpin for Base64PdfSource
impl UnwindSafe for Base64PdfSource
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