pub struct EmbeddingParams<'a> { /* private fields */ }
Expand description
Writer for an embedded file parameter dictionary.
This struct is created by EmbeddedFile::params
.
Implementations§
source§impl<'a> EmbeddingParams<'a>
impl<'a> EmbeddingParams<'a>
sourcepub fn size(&mut self, size: i32) -> &mut Self
pub fn size(&mut self, size: i32) -> &mut Self
Write the /Size
attribute to set the uncompressed file size in bytes.
sourcepub fn creation_date(&mut self, date: Date) -> &mut Self
pub fn creation_date(&mut self, date: Date) -> &mut Self
Write the /CreationDate
attribute to set the file creation date.
sourcepub fn modification_date(&mut self, date: Date) -> &mut Self
pub fn modification_date(&mut self, date: Date) -> &mut Self
Write the /ModDate
attribute to set the file modification date.
Methods from Deref<Target = Dict<'a>>§
sourcepub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
pub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
Start writing a pair with an arbitrary value.
sourcepub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
pub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
Write a pair with a primitive value.
This is a shorthand for dict.insert(key).primitive(value)
.
sourcepub fn pairs<'n, T: Primitive>(
&mut self,
pairs: impl IntoIterator<Item = (Name<'n>, T)>,
) -> &mut Self
pub fn pairs<'n, T: Primitive>( &mut self, pairs: impl IntoIterator<Item = (Name<'n>, T)>, ) -> &mut Self
Write a sequence of pairs with primitive values.
Trait Implementations§
source§impl<'a> Deref for EmbeddingParams<'a>
impl<'a> Deref for EmbeddingParams<'a>
source§impl<'a> DerefMut for EmbeddingParams<'a>
impl<'a> DerefMut for EmbeddingParams<'a>
source§impl<'a, 'any> Rewrite<'a> for EmbeddingParams<'any>
impl<'a, 'any> Rewrite<'a> for EmbeddingParams<'any>
source§type Output = EmbeddingParams<'a>
type Output = EmbeddingParams<'a>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a> Freeze for EmbeddingParams<'a>
impl<'a> RefUnwindSafe for EmbeddingParams<'a>
impl<'a> Send for EmbeddingParams<'a>
impl<'a> Sync for EmbeddingParams<'a>
impl<'a> Unpin for EmbeddingParams<'a>
impl<'a> !UnwindSafe for EmbeddingParams<'a>
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