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 Resourcewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Segment>: Freeze,
*const LeafNode<String, ParamType> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ParamType)>>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const LeafNode<String, Deadband> is !null: Freeze,
PhantomData<Box<(String, Deadband)>>: Freeze,
impl Move for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resourcewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Segment>: UnsafeUnpin,
*const LeafNode<String, ParamType> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ParamType)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const LeafNode<String, Deadband> is !null: UnsafeUnpin,
PhantomData<Box<(String, Deadband)>>: UnsafeUnpin,
impl UnwindSafe for Resourcewhere
RawVecInner: UnwindSafe,
BTreeMap<String, ParamType>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, Deadband>: UnwindSafe,
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