pub struct FormatResult {
pub file_path: PathBuf,
pub original_content: String,
pub formatted_content: String,
pub has_changes: bool,
pub error: Option<String>,
}
Expand description
Formatterの結果
Fields§
§file_path: PathBuf
元のファイルパス
original_content: String
フォーマット前の内容
formatted_content: String
フォーマット後の内容
has_changes: bool
変更があったかどうか
error: Option<String>
エラー(あれば)
Implementations§
Trait Implementations§
Source§impl Clone for FormatResult
impl Clone for FormatResult
Source§fn clone(&self) -> FormatResult
fn clone(&self) -> FormatResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FormatResult
impl RefUnwindSafe for FormatResult
impl Send for FormatResult
impl Sync for FormatResult
impl Unpin for FormatResult
impl UnwindSafe for FormatResult
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