Struct symbolic::debuginfo::sourcebundle::SourceFileInfo [−][src]
pub struct SourceFileInfo { /* fields omitted */ }
Meta data information of a file in a SourceBundle
.
Implementations
impl SourceFileInfo
[src]
impl SourceFileInfo
[src]pub fn new() -> SourceFileInfo
[src]
Creates default file information.
pub fn ty(&self) -> Option<SourceFileType>
[src]
Returns the type of the source file.
pub fn set_ty(&mut self, ty: SourceFileType)
[src]
Sets the type of the source file.
pub fn path(&self) -> Option<&str>
[src]
Returns the absolute file system path of this file.
pub fn set_path(&mut self, path: String)
[src]
Sets the absolute file system path of this file.
pub fn url(&self) -> Option<&str>
[src]
Returns the web URL that of this file.
pub fn set_url(&mut self, url: String)
[src]
Sets the web URL of this file.
pub fn headers(&self) -> impl Iterator<Item = (&str, &str)>
[src]
Iterates over all attributes represented as headers.
pub fn header(&self, header: &str) -> Option<&str>
[src]
Retrieves the specified header, if it exists.
pub fn add_header(&mut self, header: String, value: String)
[src]
Adds a custom attribute following header conventions.
pub fn is_empty(&self) -> bool
[src]
Returns true
if this instance does not carry any information.
Trait Implementations
impl Clone for SourceFileInfo
[src]
impl Clone for SourceFileInfo
[src]pub fn clone(&self) -> SourceFileInfo
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SourceFileInfo
[src]
impl Debug for SourceFileInfo
[src]impl Default for SourceFileInfo
[src]
impl Default for SourceFileInfo
[src]pub fn default() -> SourceFileInfo
[src]
impl<'de> Deserialize<'de> for SourceFileInfo
[src]
impl<'de> Deserialize<'de> for SourceFileInfo
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SourceFileInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<SourceFileInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for SourceFileInfo
[src]
impl Serialize for SourceFileInfo
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for SourceFileInfo
impl RefUnwindSafe for SourceFileInfo
impl Send for SourceFileInfo
impl Send for SourceFileInfo
impl Sync for SourceFileInfo
impl Sync for SourceFileInfo
impl Unpin for SourceFileInfo
impl Unpin for SourceFileInfo
impl UnwindSafe for SourceFileInfo
impl UnwindSafe for SourceFileInfo
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]