pub struct RepositoryConfig {
pub owner: Option<String>,
pub name: Option<String>,
pub token: Option<String>,
pub token_type: Option<String>,
pub branch: Option<String>,
pub git: Option<GitRepoConfig>,
pub pull_request: Option<PullRequestConfig>,
}Expand description
Shared repository configuration used by all git-based publishers
(Homebrew, Scoop, Winget, Krew, Nix). Equivalent to GoReleaser’s RepoRef.
Fields§
§owner: Option<String>Repository owner (GitHub user or organization).
name: Option<String>Repository name.
token: Option<String>Auth token for the repository. Falls back to env-based resolution.
token_type: Option<String>Token type: “github” (default), “gitlab”, “gitea”.
branch: Option<String>Branch to push to (default: repo default branch).
git: Option<GitRepoConfig>Git-specific settings for SSH-based publishing.
pull_request: Option<PullRequestConfig>Pull request settings for fork-based workflows.
Trait Implementations§
Source§impl Clone for RepositoryConfig
impl Clone for RepositoryConfig
Source§fn clone(&self) -> RepositoryConfig
fn clone(&self) -> RepositoryConfig
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 RepositoryConfig
impl Debug for RepositoryConfig
Source§impl Default for RepositoryConfig
impl Default for RepositoryConfig
Source§fn default() -> RepositoryConfig
fn default() -> RepositoryConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepositoryConfigwhere
RepositoryConfig: Default,
impl<'de> Deserialize<'de> for RepositoryConfigwhere
RepositoryConfig: Default,
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
Source§impl JsonSchema for RepositoryConfig
impl JsonSchema for RepositoryConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RepositoryConfig
impl RefUnwindSafe for RepositoryConfig
impl Send for RepositoryConfig
impl Sync for RepositoryConfig
impl Unpin for RepositoryConfig
impl UnsafeUnpin for RepositoryConfig
impl UnwindSafe for RepositoryConfig
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