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§
Provided Methods§
Sourcefn sub_sections(&self) -> &[&dyn Section]
fn sub_sections(&self) -> &[&dyn Section]
The list of sub-section names, which may be empty if there are no statically known sub-sections.
Implementors§
impl Section for UrlParameter
impl Section for Allow
impl Section for gix::config::tree::gitoxide::Author
impl Section for Commit
impl Section for gix::config::tree::gitoxide::Committer
impl Section for gix::config::tree::gitoxide::Core
impl Section for Credentials
impl Section for gix::config::tree::gitoxide::Http
impl Section for Https
impl Section for Objects
impl Section for Pathspec
impl Section for gix::config::tree::gitoxide::Ssh
impl Section for gix::config::tree::gitoxide::User
impl Section for NameParameter
impl Section for gix::config::tree::Author
impl Section for Branch
impl Section for Checkout
impl Section for Clone
impl Section for gix::config::tree::Committer
impl Section for gix::config::tree::Core
impl Section for Credential
impl Section for Diff
Available on crate feature
blob-diff only.impl Section for Extensions
impl Section for Fetch
impl Section for Gitoxide
impl Section for gix::config::tree::Http
impl Section for Index
impl Section for Init
impl Section for Mailmap
impl Section for Merge
impl Section for Pack
impl Section for Protocol
impl Section for Push
impl Section for Remote
impl Section for Safe
impl Section for gix::config::tree::Ssh
impl Section for Status
Available on crate feature
status only.