pub struct FbxWarning {
pub code: FbxWarningCode,
pub message: String,
pub subject: Option<String>,
pub count: u32,
}Available on crate features
fbx-reader or fbx-writer only.Expand description
One non-fatal notice raised while reading an FBX document.
Occurrences are collapsed by (code, subject): a malformed pattern
repeated across thousands of nodes yields one warning with a count, not
thousands of identical strings.
Fields§
§code: FbxWarningCodeStable classification of the notice.
message: StringHuman-readable description.
subject: Option<String>Owning FBX object name, when one is known.
count: u32How many times this (code, subject) pair fired. Never zero.
Implementations§
Source§impl FbxWarning
impl FbxWarning
Sourcepub fn new(code: FbxWarningCode, message: impl Into<String>) -> Self
pub fn new(code: FbxWarningCode, message: impl Into<String>) -> Self
Creates a warning that has fired once.
Sourcepub fn with_subject(self, subject: impl Into<String>) -> Self
pub fn with_subject(self, subject: impl Into<String>) -> Self
Attaches the FBX object this notice is about.
Trait Implementations§
Source§impl Clone for FbxWarning
impl Clone for FbxWarning
Source§fn clone(&self) -> FbxWarning
fn clone(&self) -> FbxWarning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FbxWarning
impl Debug for FbxWarning
Source§impl Display for FbxWarning
impl Display for FbxWarning
impl Eq for FbxWarning
Source§impl PartialEq for FbxWarning
impl PartialEq for FbxWarning
impl StructuralPartialEq for FbxWarning
Auto Trait Implementations§
impl Freeze for FbxWarning
impl RefUnwindSafe for FbxWarning
impl Send for FbxWarning
impl Sync for FbxWarning
impl Unpin for FbxWarning
impl UnsafeUnpin for FbxWarning
impl UnwindSafe for FbxWarning
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