pub struct Singleton {
pub capability: &'static str,
pub binding: &'static str,
pub wrangler_table: &'static str,
}Expand description
A platform capability with exactly one binding per Worker (#3300): Version
metadata’s [version_metadata] and Workers AI’s [ai].
Fields§
§capability: &'static strThe capability’s name in its unit (Version).
binding: &'static strIts fixed Worker binding name, the one env field its provider reads.
wrangler_table: &'static strThe wrangler.toml table that declares it (version_metadata), a
plain table holding only binding.
Trait Implementations§
impl Copy for Singleton
impl Eq for Singleton
impl StructuralPartialEq for Singleton
Auto Trait Implementations§
impl Freeze for Singleton
impl RefUnwindSafe for Singleton
impl Send for Singleton
impl Sync for Singleton
impl Unpin for Singleton
impl UnsafeUnpin for Singleton
impl UnwindSafe for Singleton
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