Struct ft_sdk::from_request::Mountpoint
source · pub struct Mountpoint(pub String);Expand description
Mountpoint is the path on which the wasm file is mounted.
If in FASTN.ftd, we have:
-- import: fastn
-- fastn.package: hello-world
-- fastn.url-mappings:
/foo/* -> wasm+proxy://hello-world.wasm/*
Then the mountpoint is /foo/.
Implementation note: The mountpoint is passed by the host using x-fastn-mountpoint header.
Tuple Fields§
§0: StringTrait Implementations§
source§impl FromRequest for Mountpoint
impl FromRequest for Mountpoint
fn from_request(req: &Request<Value>) -> Result<Mountpoint, Error>
Auto Trait Implementations§
impl Freeze for Mountpoint
impl RefUnwindSafe for Mountpoint
impl Send for Mountpoint
impl Sync for Mountpoint
impl Unpin for Mountpoint
impl UnwindSafe for Mountpoint
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
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more