pub struct CommandResult {
pub value: Option<u32>,
pub context: Option<Value>,
pub description: Option<String>,
pub serialized_context: Option<String>,
pub commit_message: Option<String>,
pub title: Option<String>,
pub tags: Vec<(String, Option<RevisionId>)>,
pub target_branch_url: Option<Url>,
pub old_revision: RevisionId,
pub new_revision: RevisionId,
}Expand description
Command result
Fields§
§value: Option<u32>Value
context: Option<Value>Context
description: Option<String>Description
serialized_context: Option<String>Serialized context
commit_message: Option<String>Commit message
title: Option<String>Title
Tags
target_branch_url: Option<Url>Target branch URL
old_revision: RevisionIdOld revision
new_revision: RevisionIdNew revision
Trait Implementations§
Source§impl Clone for CommandResult
impl Clone for CommandResult
Source§fn clone(&self) -> CommandResult
fn clone(&self) -> CommandResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CodemodResult for CommandResult
impl CodemodResult for CommandResult
Source§fn target_branch_url(&self) -> Option<Url>
fn target_branch_url(&self) -> Option<Url>
Returns the URL of the target branch
Source§fn description(&self) -> Option<String>
fn description(&self) -> Option<String>
Returns the description of the result
Returns the tags of the result
Source§fn tera_context(&self) -> Context
fn tera_context(&self) -> Context
Returns the context as a Tera context
Source§impl Debug for CommandResult
impl Debug for CommandResult
Source§impl Default for CommandResult
impl Default for CommandResult
Source§impl<'de> Deserialize<'de> for CommandResult
impl<'de> Deserialize<'de> for CommandResult
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
Auto Trait Implementations§
impl Freeze for CommandResult
impl RefUnwindSafe for CommandResult
impl Send for CommandResult
impl Sync for CommandResult
impl Unpin for CommandResult
impl UnsafeUnpin for CommandResult
impl UnwindSafe for CommandResult
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