pub struct ChangesetState {
pub status: ChangesetStatus,
pub error: Option<ErrorInfo>,
pub files: Vec<ChangesetFile>,
pub operations: Option<Vec<ChangesetOperation>>,
}Expand description
Full state for a single changeset, returned when a client subscribes to an expanded changeset URI.
The client already knows the URI it subscribed to, so this state does
not redundantly carry it (or the catalogue’s id, label, etc.).
Aggregate counts (additions, deletions, files) are likewise
omitted: clients trivially compute them from files[].edit.diff.
Fields§
§status: ChangesetStatusComputation lifecycle.
error: Option<ErrorInfo>Present iff status === ChangesetStatus.Error.
files: Vec<ChangesetFile>Files in this changeset, keyed by {@link ChangesetFile.id}.
operations: Option<Vec<ChangesetOperation>>Operations the client may invoke against this changeset. Omit when no operations are available.
Trait Implementations§
Source§impl Clone for ChangesetState
impl Clone for ChangesetState
Source§fn clone(&self) -> ChangesetState
fn clone(&self) -> ChangesetState
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 ChangesetState
impl Debug for ChangesetState
Source§impl<'de> Deserialize<'de> for ChangesetState
impl<'de> Deserialize<'de> for ChangesetState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChangesetState
impl PartialEq for ChangesetState
Source§fn eq(&self, other: &ChangesetState) -> bool
fn eq(&self, other: &ChangesetState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChangesetState
impl Serialize for ChangesetState
impl StructuralPartialEq for ChangesetState
Auto Trait Implementations§
impl Freeze for ChangesetState
impl RefUnwindSafe for ChangesetState
impl Send for ChangesetState
impl Sync for ChangesetState
impl Unpin for ChangesetState
impl UnsafeUnpin for ChangesetState
impl UnwindSafe for ChangesetState
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