Struct git_transport::client::capabilities::Capability
source · pub struct Capability<'a>(_);
Expand description
The name of a single capability.
Implementations§
source§impl<'a> Capability<'a>
impl<'a> Capability<'a>
sourcepub fn name(&self) -> &'a BStr
pub fn name(&self) -> &'a BStr
Returns the name of the capability.
Most capabilities only consist of a name, making them appear like a feature toggle.
sourcepub fn value(&self) -> Option<&'a BStr>
pub fn value(&self) -> Option<&'a BStr>
Returns the value associated with the capability.
Note that the caller must know whether a single or multiple values are expected, in which
case values()
should be called.