pub struct FunctionEntry {
pub name: String,
pub app_id: String,
pub rest_url: String,
pub verbs: Vec<String>,
pub description: Option<String>,
}Expand description
One custom Resource implementation surfaced by an app.
Fields§
§name: StringFunction/resource name as registered.
app_id: StringOwning application id.
rest_url: StringREST endpoint URL.
verbs: Vec<String>HTTP verbs the function answers. Determined per-function at
registration time. Inventory currently emits an empty list — the
AutoRouter doesn’t expose per-resource verb tables. Agents
should treat empty as “unknown; try GET first.”
description: Option<String>Optional human description.
Trait Implementations§
Source§impl Clone for FunctionEntry
impl Clone for FunctionEntry
Source§fn clone(&self) -> FunctionEntry
fn clone(&self) -> FunctionEntry
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 moreSource§impl Debug for FunctionEntry
impl Debug for FunctionEntry
Source§impl<'de> Deserialize<'de> for FunctionEntry
impl<'de> Deserialize<'de> for FunctionEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FunctionEntry
impl RefUnwindSafe for FunctionEntry
impl Send for FunctionEntry
impl Sync for FunctionEntry
impl Unpin for FunctionEntry
impl UnsafeUnpin for FunctionEntry
impl UnwindSafe for FunctionEntry
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