pub struct ResourceTemplate {
pub name: &'static str,
pub description: &'static str,
pub contents: &'static str,
pub companions: &'static [CompanionFile],
pub companion_trackers: &'static [CompanionTracker],
}Expand description
Starter resource templates. companions are additional resource
definitions the template depends on, and companion_trackers are lanes
it deposits into; both are created alongside it when absent (e.g. the
user-owned pnpm-store that deps depends on, or the db-snapshots
lane a Postgres dump lands in).
Fields§
§name: &'static str§description: &'static str§contents: &'static str§companions: &'static [CompanionFile]§companion_trackers: &'static [CompanionTracker]Trait Implementations§
Source§impl Clone for ResourceTemplate
impl Clone for ResourceTemplate
Source§fn clone(&self) -> ResourceTemplate
fn clone(&self) -> ResourceTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResourceTemplate
Auto Trait Implementations§
impl Freeze for ResourceTemplate
impl RefUnwindSafe for ResourceTemplate
impl Send for ResourceTemplate
impl Sync for ResourceTemplate
impl Unpin for ResourceTemplate
impl UnsafeUnpin for ResourceTemplate
impl UnwindSafe for ResourceTemplate
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