pub struct MetadataEntry {
pub node: Option<usize>,
pub key: String,
pub value: Vec<u8>,
}Expand description
One entry of metadata.
Fields§
§node: Option<usize>The node the entry is about, as an index into the scene’s nodes, or
None for the whole file.
key: StringWhat the value is: a registered key, such as title, or a program’s
own, with a dot, such as breadslicer.printer.
value: Vec<u8>The value: UTF-8 text for the registered text keys, 16 bytes for
uuid, and whatever a program makes of it for its own keys.
Implementations§
Source§impl MetadataEntry
impl MetadataEntry
Sourcepub fn text(node: Option<usize>, key: &str, text: &str) -> Self
pub fn text(node: Option<usize>, key: &str, text: &str) -> Self
An entry with a text value, such as a title.
Sourcepub fn uuid(node: Option<usize>, uuid: [u8; 16]) -> Self
pub fn uuid(node: Option<usize>, uuid: [u8; 16]) -> Self
An entry with a UUID, given as its 16 bytes in the order of RFC 9562.
Trait Implementations§
Source§impl Clone for MetadataEntry
impl Clone for MetadataEntry
Source§impl Debug for MetadataEntry
impl Debug for MetadataEntry
impl Eq for MetadataEntry
Source§impl PartialEq for MetadataEntry
impl PartialEq for MetadataEntry
impl StructuralPartialEq for MetadataEntry
Auto Trait Implementations§
impl Forget for MetadataEntry
impl Freeze for MetadataEntry
impl Move for MetadataEntry
impl RefUnwindSafe for MetadataEntry
impl Send for MetadataEntry
impl Sync for MetadataEntry
impl Unpin for MetadataEntry
impl UnsafeUnpin for MetadataEntry
impl UnwindSafe for MetadataEntry
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