pub struct SchemaEntry {
pub id: String,
pub effect: EffectClass,
pub honesty: HonestyLabel,
pub args: Vec<SchemaArg>,
pub returns: String,
pub description: String,
}Expand description
A host call schema entry (T51).
Fields§
§id: StringThe host call path (e.g. “time.now”, “crypto.sha256”).
effect: EffectClassThe effect class.
honesty: HonestyLabelThe honesty label.
args: Vec<SchemaArg>The arguments.
returns: StringThe return type name.
description: StringOptional description.
Implementations§
Source§impl SchemaEntry
impl SchemaEntry
Sourcepub fn new(
id: &str,
effect: EffectClass,
honesty: HonestyLabel,
returns: &str,
) -> Self
pub fn new( id: &str, effect: EffectClass, honesty: HonestyLabel, returns: &str, ) -> Self
Creates a new SchemaEntry.
Sourcepub fn with_description(self, desc: &str) -> Self
pub fn with_description(self, desc: &str) -> Self
Builder — sets description.
Trait Implementations§
Source§impl Clone for SchemaEntry
impl Clone for SchemaEntry
Source§impl Debug for SchemaEntry
impl Debug for SchemaEntry
Source§impl PartialEq for SchemaEntry
impl PartialEq for SchemaEntry
impl StructuralPartialEq for SchemaEntry
Auto Trait Implementations§
impl Freeze for SchemaEntry
impl RefUnwindSafe for SchemaEntry
impl Send for SchemaEntry
impl Sync for SchemaEntry
impl Unpin for SchemaEntry
impl UnsafeUnpin for SchemaEntry
impl UnwindSafe for SchemaEntry
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