pub enum TagValue {
String(String),
Integer(i64),
Float(f64),
Boolean(bool),
Array(Vec<TagValue>),
Binary(String),
Null,
}Expand description
标签值类型 - 支持 ExifTool 返回的所有数据类型
Variants§
String(String)
字符串值
Integer(i64)
整数值
Float(f64)
浮点数值
Boolean(bool)
布尔值
Array(Vec<TagValue>)
数组值
Binary(String)
二进制数据(Base64 编码)
Null
空值
Implementations§
Source§impl TagValue
impl TagValue
Sourcepub fn as_integer(&self) -> Option<i64>
pub fn as_integer(&self) -> Option<i64>
尝试获取整数值
Sourcepub fn to_string_lossy(&self) -> String
pub fn to_string_lossy(&self) -> String
转换为字符串表示
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TagValue
impl<'de> Deserialize<'de> for TagValue
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
impl StructuralPartialEq for TagValue
Auto Trait Implementations§
impl Freeze for TagValue
impl RefUnwindSafe for TagValue
impl Send for TagValue
impl Sync for TagValue
impl Unpin for TagValue
impl UnsafeUnpin for TagValue
impl UnwindSafe for TagValue
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