pub enum TrunkSource {
RemoteHead,
DefaultBranchConfig,
ConventionalName,
PrimaryCheckout,
Unknown,
}Expand description
Where the trunk was learned from, in the order it is looked for.
Variants§
RemoteHead
refs/remotes/<remote>/HEAD: what the remote calls its default branch.
DefaultBranchConfig
init.defaultBranch in the git configuration, and that branch exists locally.
ConventionalName
Exactly one of main and master exists locally.
PrimaryCheckout
The branch the primary checkout holds, because nothing else said.
Unknown
Nothing said; the trunk is unknown and every check that needs it says so.
Trait Implementations§
Source§impl Clone for TrunkSource
impl Clone for TrunkSource
Source§fn clone(&self) -> TrunkSource
fn clone(&self) -> TrunkSource
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 moreimpl Copy for TrunkSource
Source§impl Debug for TrunkSource
impl Debug for TrunkSource
Source§impl<'de> Deserialize<'de> for TrunkSource
impl<'de> Deserialize<'de> for TrunkSource
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 TrunkSource
Source§impl JsonSchema for TrunkSource
impl JsonSchema for TrunkSource
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TrunkSource
impl PartialEq for TrunkSource
Source§fn eq(&self, other: &TrunkSource) -> bool
fn eq(&self, other: &TrunkSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TrunkSource
impl Serialize for TrunkSource
impl StructuralPartialEq for TrunkSource
Auto Trait Implementations§
impl Freeze for TrunkSource
impl RefUnwindSafe for TrunkSource
impl Send for TrunkSource
impl Sync for TrunkSource
impl Unpin for TrunkSource
impl UnsafeUnpin for TrunkSource
impl UnwindSafe for TrunkSource
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.