pub struct ResDef {
pub group: &'static str,
pub version: &'static str,
pub plural: &'static str,
pub singular: &'static str,
pub kind: &'static str,
pub namespaced: bool,
pub verbs: &'static [&'static str],
pub short: &'static [&'static str],
pub categories: &'static [&'static str],
pub subresources: &'static [&'static str],
pub stored: bool,
}Fields§
§group: &'static str§version: &'static str§plural: &'static str§singular: &'static str§kind: &'static str§namespaced: bool§verbs: &'static [&'static str]§short: &'static [&'static str]§categories: &'static [&'static str]§subresources: &'static [&'static str]§stored: boolImplementations§
Source§impl ResDef
impl ResDef
pub fn api_version(&self) -> String
pub fn can(&self, verb: &str) -> bool
pub fn has_sub(&self, sub: &str) -> bool
pub fn qualified(&self) -> String
pub fn prefix(&self, ns: Option<&str>) -> String
pub fn key(&self, ns: Option<&str>, name: &str) -> String
pub fn sub_kind(&self, sub: &str) -> (&'static str, &'static str, &'static str)
pub fn sub_verbs(&self, sub: &str) -> &'static [&'static str]
Auto Trait Implementations§
impl Forget for ResDef
impl Freeze for ResDef
impl Move for ResDef
impl RefUnwindSafe for ResDef
impl Send for ResDef
impl Sync for ResDef
impl Unpin for ResDef
impl UnsafeUnpin for ResDef
impl UnwindSafe for ResDef
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