pub struct CompareContext {
pub page_id: String,
pub page_title: String,
pub page_url: Option<String>,
pub from_version: VersionInfo,
pub to_version: VersionInfo,
pub from_title: String,
pub to_title: String,
pub from_labels: Vec<String>,
pub to_labels: Vec<String>,
}Expand description
Side-channel data the renderer needs beyond the Diff itself.
Fields§
§page_id: StringConfluence page ID.
page_title: StringPage title (the to side’s title).
page_url: Option<String>Optional rendered page URL.
from_version: VersionInfofrom-side version metadata.
to_version: VersionInfoto-side version metadata.
from_title: Stringfrom-side page title (used for title-change detection).
to_title: Stringto-side page title.
from_labels: Vec<String>from-side labels.
to_labels: Vec<String>to-side labels.
Trait Implementations§
Source§impl Clone for CompareContext
impl Clone for CompareContext
Source§fn clone(&self) -> CompareContext
fn clone(&self) -> CompareContext
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 CompareContext
impl Debug for CompareContext
Source§impl Default for CompareContext
impl Default for CompareContext
Source§fn default() -> CompareContext
fn default() -> CompareContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompareContext
impl RefUnwindSafe for CompareContext
impl Send for CompareContext
impl Sync for CompareContext
impl Unpin for CompareContext
impl UnsafeUnpin for CompareContext
impl UnwindSafe for CompareContext
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