pub struct Changeset {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}
Fields§
§proc: Option<Arc<DaggerSessionProc>>
§selection: Selection
§graphql_client: DynGraphQLClient
Implementations§
Source§impl Changeset
impl Changeset
Sourcepub async fn added_paths(&self) -> Result<Vec<String>, DaggerError>
pub async fn added_paths(&self) -> Result<Vec<String>, DaggerError>
Files and directories that were added in the newer directory.
Sourcepub async fn export(
&self,
path: impl Into<String>,
) -> Result<String, DaggerError>
pub async fn export( &self, path: impl Into<String>, ) -> Result<String, DaggerError>
Applies the diff represented by this changeset to a path on the host.
§Arguments
path
- Location of the copied directory (e.g., “logs/”).
Sourcepub async fn id(&self) -> Result<ChangesetId, DaggerError>
pub async fn id(&self) -> Result<ChangesetId, DaggerError>
A unique identifier for this Changeset.
Sourcepub fn layer(&self) -> Directory
pub fn layer(&self) -> Directory
Return a snapshot containing only the created and modified files
Sourcepub async fn modified_paths(&self) -> Result<Vec<String>, DaggerError>
pub async fn modified_paths(&self) -> Result<Vec<String>, DaggerError>
Files and directories that existed before and were updated in the newer directory.
Sourcepub async fn removed_paths(&self) -> Result<Vec<String>, DaggerError>
pub async fn removed_paths(&self) -> Result<Vec<String>, DaggerError>
Files and directories that were removed. Directories are indicated by a trailing slash, and their child paths are not included.
Sourcepub async fn sync(&self) -> Result<ChangesetId, DaggerError>
pub async fn sync(&self) -> Result<ChangesetId, DaggerError>
Force evaluation in the engine.
Trait Implementations§
Source§impl IntoID<ChangesetId> for Changeset
impl IntoID<ChangesetId> for Changeset
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<ChangesetId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for Changeset
impl !RefUnwindSafe for Changeset
impl Send for Changeset
impl Sync for Changeset
impl Unpin for Changeset
impl !UnwindSafe for Changeset
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