pub struct Endpoints { /* private fields */ }Expand description
The paths every Livewire endpoint is served under.
Implementations§
Source§impl Endpoints
impl Endpoints
Sourcepub fn new(app_key: &str) -> Self
pub fn new(app_key: &str) -> Self
/<livewire-{first 8 hex of sha256(app_key + "livewire-endpoint")}>.
Sourcepub fn script(&self, minified: bool, csp: bool) -> String
pub fn script(&self, minified: bool, csp: bool) -> String
The path that serves the browser runtime, in the normal or CSP build, minified or not.
Sourcepub fn module_js_route(&self) -> String
pub fn module_js_route(&self) -> String
The route pattern that serves a component’s JavaScript module.
Sourcepub fn module_css_route(&self) -> String
pub fn module_css_route(&self) -> String
The route pattern that serves a component’s CSS module, scoped or global.
Sourcepub fn module_js(&self, component: &str) -> String
pub fn module_js(&self, component: &str) -> String
The URL of a component’s JavaScript module.
The name is encoded because : and . are legal in a component name and not in a path
segment, as upstream’s moduleUrl does.
Sourcepub fn module_css(&self, component: &str) -> String
pub fn module_css(&self, component: &str) -> String
The URL of a component’s scoped CSS module.
Sourcepub fn module_global_css(&self, component: &str) -> String
pub fn module_global_css(&self, component: &str) -> String
The URL of a component’s global CSS module.
Trait Implementations§
impl Eq for Endpoints
impl StructuralPartialEq for Endpoints
Auto Trait Implementations§
impl Forget for Endpoints
impl Freeze for Endpoints
impl Move for Endpoints
impl RefUnwindSafe for Endpoints
impl Send for Endpointswhere
RawVecInner: Send,
impl Sync for Endpointswhere
RawVecInner: Sync,
impl Unpin for Endpoints
impl UnsafeUnpin for Endpoints
impl UnwindSafe for Endpointswhere
RawVecInner: 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.