pub struct SessionChange {
pub url: Url,
pub id: ChangeId,
pub base: String,
pub draft: bool,
pub title: String,
pub body: String,
}Expand description
A session’s change request, as the host holds it right now.
What every verb here answers with, after it has done what it was asked: the change request’s address on the host, its identifier, the base it targets, whether the host holds it as a draft, and its description. The read is made after the write, so a caller that described the change sees what it wrote as the host now has it rather than what it sent.
Fields§
§url: UrlWhere a human reads it.
id: ChangeIdThe host’s identifier for it.
base: StringThe branch it targets.
draft: boolWhether the host is holding it as a draft.
title: StringIts title, as the host holds it.
body: StringIts body, as the host holds it — empty where it carries none.
Trait Implementations§
Source§impl Clone for SessionChange
impl Clone for SessionChange
Source§impl Debug for SessionChange
impl Debug for SessionChange
Source§impl<'de> Deserialize<'de> for SessionChange
impl<'de> Deserialize<'de> for SessionChange
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
impl Eq for SessionChange
Source§impl PartialEq for SessionChange
impl PartialEq for SessionChange
Source§impl Serialize for SessionChange
impl Serialize for SessionChange
impl StructuralPartialEq for SessionChange
Auto Trait Implementations§
impl Freeze for SessionChange
impl RefUnwindSafe for SessionChange
impl Send for SessionChange
impl Sync for SessionChange
impl Unpin for SessionChange
impl UnsafeUnpin for SessionChange
impl UnwindSafe for SessionChange
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.