pub trait Section {
    // Required methods
    fn name(&self) -> &str;
    fn keys(&self) -> &[&dyn Key];

    // Provided methods
    fn sub_sections(&self) -> &[&dyn Section] { ... }
    fn parent(&self) -> Option<&dyn Section> { ... }
}
Expand description

Provide information about a configuration section.

Required Methods§

source

fn name(&self) -> &str

The section name, like remote in remote.origin.url.

source

fn keys(&self) -> &[&dyn Key]

The keys directly underneath it for carrying configuration values.

Provided Methods§

source

fn sub_sections(&self) -> &[&dyn Section]

The list of sub-section names, which may be empty if there are no statically known sub-sections.

source

fn parent(&self) -> Option<&dyn Section>

The parent section if this is a statically known sub-section.

Implementors§

source§

impl Section for UrlParameter

source§

impl Section for Allow

source§

impl Section for git_repository::config::tree::gitoxide::Author

source§

impl Section for Commit

source§

impl Section for git_repository::config::tree::gitoxide::Committer

source§

impl Section for git_repository::config::tree::gitoxide::Http

source§

impl Section for Https

source§

impl Section for Objects

source§

impl Section for git_repository::config::tree::gitoxide::Ssh

source§

impl Section for git_repository::config::tree::gitoxide::User

source§

impl Section for NameParameter

source§

impl Section for git_repository::config::tree::Author

source§

impl Section for Branch

source§

impl Section for Checkout

source§

impl Section for Clone

source§

impl Section for git_repository::config::tree::Committer

source§

impl Section for Core

source§

impl Section for Credential

source§

impl Section for Diff

source§

impl Section for Extensions

source§

impl Section for Gitoxide

source§

impl Section for git_repository::config::tree::Http

source§

impl Section for Init

source§

impl Section for Pack

source§

impl Section for Protocol

source§

impl Section for Remote

source§

impl Section for Safe

source§

impl Section for git_repository::config::tree::Ssh

source§

impl Section for Url

source§

impl Section for git_repository::config::tree::User