pub struct SourceControlManagementProviderDTO {
pub Handle: u32,
pub Identifier: String,
pub Label: String,
pub RootURI: Option<Value>,
pub Count: Option<u32>,
pub CommitTemplate: Option<String>,
pub InputBox: Option<SourceControlInputBoxDTO>,
}Expand description
A serializable struct representing the metadata for a source control provider.
Fields§
§Handle: u32§Identifier: StringThe provider id (“git”, “github”, “hg”, …). Used as the
scmId field on the sky://scm/register event payload so
replay-on-late-listener (Sky boot race) can re-emit with
the original id Cocoon’s ScmShimRegistry keys against.
Defaults to empty for backwards-compat with old DTOs.
Label: String§RootURI: Option<Value>The root URI of the repository this provider is managing. Serialized
UriComponents.
Count: Option<u32>An optional count of changed resources, often displayed as a badge.
CommitTemplate: Option<String>The template for the commit message input box.
InputBox: Option<SourceControlInputBoxDTO>The state of the SourceControlManagement input box (commit message area).
Trait Implementations§
Source§impl Clone for SourceControlManagementProviderDTO
impl Clone for SourceControlManagementProviderDTO
Source§fn clone(&self) -> SourceControlManagementProviderDTO
fn clone(&self) -> SourceControlManagementProviderDTO
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for SourceControlManagementProviderDTO
impl<'de> Deserialize<'de> for SourceControlManagementProviderDTO
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 SourceControlManagementProviderDTO
impl RefUnwindSafe for SourceControlManagementProviderDTO
impl Send for SourceControlManagementProviderDTO
impl Sync for SourceControlManagementProviderDTO
impl Unpin for SourceControlManagementProviderDTO
impl UnsafeUnpin for SourceControlManagementProviderDTO
impl UnwindSafe for SourceControlManagementProviderDTO
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