pub struct DiffStat {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
Source§impl DiffStat
impl DiffStat
Sourcepub async fn added_lines(&self) -> Result<isize, DaggerError>
pub async fn added_lines(&self) -> Result<isize, DaggerError>
Number of added lines for this path.
Sourcepub async fn id(&self) -> Result<DiffStatId, DaggerError>
pub async fn id(&self) -> Result<DiffStatId, DaggerError>
A unique identifier for this DiffStat.
Sourcepub async fn kind(&self) -> Result<DiffStatKind, DaggerError>
pub async fn kind(&self) -> Result<DiffStatKind, DaggerError>
Type of change.
Sourcepub async fn old_path(&self) -> Result<String, DaggerError>
pub async fn old_path(&self) -> Result<String, DaggerError>
Previous path of the file, set only for renames.
Sourcepub async fn path(&self) -> Result<String, DaggerError>
pub async fn path(&self) -> Result<String, DaggerError>
Path of the changed file or directory.
Sourcepub async fn removed_lines(&self) -> Result<isize, DaggerError>
pub async fn removed_lines(&self) -> Result<isize, DaggerError>
Number of removed lines for this path.
Trait Implementations§
Source§impl IntoID<DiffStatId> for DiffStat
impl IntoID<DiffStatId> for DiffStat
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<DiffStatId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for DiffStat
impl !RefUnwindSafe for DiffStat
impl Send for DiffStat
impl Sync for DiffStat
impl Unpin for DiffStat
impl UnsafeUnpin for DiffStat
impl !UnwindSafe for DiffStat
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