pub struct ChangesetFile {
pub id: String,
pub edit: FileEdit,
pub reviewed: Option<bool>,
pub meta: Option<JsonObject>,
}Expand description
One file entry within a {@link ChangesetState}.
Fields§
§id: StringStable identifier within the changeset. Typically after.uri
(or before.uri for deletions).
edit: FileEditReuses the existing {@link FileEdit} shape. Clients derive line additions, deletions, and rename/create/delete semantics from this.
reviewed: Option<bool>Whether the user has reviewed this file. Omit (or set to undefined)
to indicate that the server does not support the “review” functionality;
in that case clients should not surface any reviewed/unreviewed
affordance for this file.
meta: Option<JsonObject>Server-defined opaque metadata, surfaced to operations and tooling but not interpreted by the protocol.
Trait Implementations§
Source§impl Clone for ChangesetFile
impl Clone for ChangesetFile
Source§fn clone(&self) -> ChangesetFile
fn clone(&self) -> ChangesetFile
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 ChangesetFile
impl Debug for ChangesetFile
Source§impl<'de> Deserialize<'de> for ChangesetFile
impl<'de> Deserialize<'de> for ChangesetFile
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 ChangesetFile
impl PartialEq for ChangesetFile
Source§fn eq(&self, other: &ChangesetFile) -> bool
fn eq(&self, other: &ChangesetFile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChangesetFile
impl Serialize for ChangesetFile
impl StructuralPartialEq for ChangesetFile
Auto Trait Implementations§
impl Freeze for ChangesetFile
impl RefUnwindSafe for ChangesetFile
impl Send for ChangesetFile
impl Sync for ChangesetFile
impl Unpin for ChangesetFile
impl UnsafeUnpin for ChangesetFile
impl UnwindSafe for ChangesetFile
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