pub struct ChangesetCapabilities {
pub review: Option<JsonObject>,
}Expand description
Optional capabilities a changeset advertises on its catalogue {@link Changeset} entry.
Each field is a presence flag: an empty object {} means “supported”,
absence means “not supported”. Sub-fields on individual capabilities are
reserved for future per-capability options.
Fields§
§review: Option<JsonObject>The changeset supports the per-file review workflow. When declared,
clients MAY surface a GitHub-style “Viewed” toggle per file and dispatch
{@link ChangesetFilesReviewChangedAction | changeset/filesReviewChanged} to
set each file’s {@link ChangesetFile.reviewed} flag. Clients that omit
handling MUST treat the changeset as non-reviewable.
Trait Implementations§
Source§impl Clone for ChangesetCapabilities
impl Clone for ChangesetCapabilities
Source§fn clone(&self) -> ChangesetCapabilities
fn clone(&self) -> ChangesetCapabilities
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 ChangesetCapabilities
impl Debug for ChangesetCapabilities
Source§impl Default for ChangesetCapabilities
impl Default for ChangesetCapabilities
Source§fn default() -> ChangesetCapabilities
fn default() -> ChangesetCapabilities
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChangesetCapabilities
impl<'de> Deserialize<'de> for ChangesetCapabilities
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 ChangesetCapabilities
impl PartialEq for ChangesetCapabilities
Source§impl Serialize for ChangesetCapabilities
impl Serialize for ChangesetCapabilities
impl StructuralPartialEq for ChangesetCapabilities
Auto Trait Implementations§
impl Freeze for ChangesetCapabilities
impl RefUnwindSafe for ChangesetCapabilities
impl Send for ChangesetCapabilities
impl Sync for ChangesetCapabilities
impl Unpin for ChangesetCapabilities
impl UnsafeUnpin for ChangesetCapabilities
impl UnwindSafe for ChangesetCapabilities
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