pub struct Cell {
pub ns: String,
pub fn_name: String,
pub fn_hash: String,
pub args: Args,
}Expand description
A cell (4.4): a function, pinned by hash, applied to arguments. May denote a slice.
Fields§
§ns: StringThe namespace, e.g. rates.example.org.
fn_name: StringThe function name within the namespace.
fn_hash: StringThe function hash, 64 lowercase hex digits.
args: ArgsThe arguments.
Implementations§
Source§impl Cell
impl Cell
Sourcepub fn from_json(bytes: &[u8]) -> Result<Cell>
pub fn from_json(bytes: &[u8]) -> Result<Cell>
Parses a cell from JSON text: strict JSON, structure, canonical form. Slices allowed.
Sourcepub fn from_value(v: &Value) -> Result<Cell>
pub fn from_value(v: &Value) -> Result<Cell>
Checks a parsed JSON value as a cell.
Sourcepub fn function_name(&self) -> String
pub fn function_name(&self) -> String
The fully qualified function name <ns>/<fn>.
Trait Implementations§
impl Eq for Cell
impl StructuralPartialEq for Cell
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
impl UnwindSafe for Cell
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