pub struct SessionRequest {
pub repo: String,
pub branch: Option<String>,
pub base: Option<String>,
pub execution_checkout: Option<String>,
}Expand description
What to open a session over.
Fields§
§repo: StringThe repository: an identity key, a registered alias, or a path.
branch: Option<String>The branch to work on.
A name that already exists — in a checkout of this identity, or on origin —
is continued: the session’s worktree is opened at that branch’s tip and
carries the work already on it. A name nothing carries yet is cut fresh from
base. Absent means one is derived, which is always a fresh
cut.
base: Option<String>The branch this session’s work is merged with and published into.
For a branch cut fresh it is also the point the branch starts from. For a branch that already exists it is the integration target and nothing else: what is merged in when it has moved on, and what the publication is compared against. Absent means the identity’s registered base. Naming the session’s own branch here is refused — it would publish the branch into itself.
execution_checkout: Option<String>Which registered checkout to clone from. Absent means the identity’s default execution checkout.
Trait Implementations§
Source§impl Clone for SessionRequest
impl Clone for SessionRequest
Source§fn clone(&self) -> SessionRequest
fn clone(&self) -> SessionRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionRequest
impl Debug for SessionRequest
Source§impl<'de> Deserialize<'de> for SessionRequest
impl<'de> Deserialize<'de> for SessionRequest
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>,
impl Eq for SessionRequest
Source§impl PartialEq for SessionRequest
impl PartialEq for SessionRequest
Source§impl Serialize for SessionRequest
impl Serialize for SessionRequest
impl StructuralPartialEq for SessionRequest
Auto Trait Implementations§
impl Freeze for SessionRequest
impl RefUnwindSafe for SessionRequest
impl Send for SessionRequest
impl Sync for SessionRequest
impl Unpin for SessionRequest
impl UnsafeUnpin for SessionRequest
impl UnwindSafe for SessionRequest
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
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§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
key and return true if they are equal.