pub struct DiffQuery {
pub from: String,
pub to: Option<String>,
pub branch: String,
}Expand description
Diff references: branch name, snapshot name, or sequence number.
Fields§
§from: StringSource reference (branch name, snapshot name prefixed with “snap:”, or seq number).
to: Option<String>Target reference (branch name, snapshot name prefixed with “snap:”, or seq number). Defaults to HEAD of the session’s main branch.
branch: StringBranch context when using sequence numbers (default: main).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiffQuery
impl<'de> Deserialize<'de> for DiffQuery
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 DiffQuery
impl RefUnwindSafe for DiffQuery
impl Send for DiffQuery
impl Sync for DiffQuery
impl Unpin for DiffQuery
impl UnsafeUnpin for DiffQuery
impl UnwindSafe for DiffQuery
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