pub struct Resource {
pub template: Template,
pub kind: Kind,
pub token: KindToken,
pub doc: Option<String>,
pub params: BTreeMap<String, ParamType>,
pub cardinality: Option<u64>,
pub epoch: Option<String>,
pub optional: bool,
pub gate: Vec<String>,
pub deprecated: Option<Deprecated>,
pub annotations: BTreeMap<String, Value>,
pub body: Body,
}Expand description
One resource, fully explicit.
Fields§
§template: Template§kind: Kind§token: KindToken§doc: Option<String>Documentation; not in the fingerprint.
params: BTreeMap<String, ParamType>§cardinality: Option<u64>§epoch: Option<String>§optional: bool§gate: Vec<String>Sorted, deduplicated (a gate list is an AND).
deprecated: Option<Deprecated>§annotations: BTreeMap<String, Value>[defaults], then [defaults.<kind>], then the resource’s own.
body: BodyTrait Implementations§
Auto Trait Implementations§
impl Forget for Resource
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more