pub struct JsSubtreePolicies { /* private fields */ }
Implementations§
Source§impl JsSubtreePolicies
impl JsSubtreePolicies
pub fn new() -> JsSubtreePolicies
pub fn with_schema( &self, schema: &JsValue, ) -> Result<JsSubtreePolicies, JsValue>
pub fn with_expiration(&self, max_block_count: u32) -> JsSubtreePolicies
Trait Implementations§
Source§impl From<JsSubtreePolicies> for JsValue
impl From<JsSubtreePolicies> for JsValue
Source§fn from(value: JsSubtreePolicies) -> JsValue
fn from(value: JsSubtreePolicies) -> JsValue
Converts to this type from the input type.
Source§impl From<SubtreePolicies> for JsSubtreePolicies
impl From<SubtreePolicies> for JsSubtreePolicies
Source§fn from(inner: SubtreePolicies) -> JsSubtreePolicies
fn from(inner: SubtreePolicies) -> JsSubtreePolicies
Converts to this type from the input type.
Source§impl FromWasmAbi for JsSubtreePolicies
impl FromWasmAbi for JsSubtreePolicies
Source§impl IntoWasmAbi for JsSubtreePolicies
impl IntoWasmAbi for JsSubtreePolicies
Source§impl LongRefFromWasmAbi for JsSubtreePolicies
impl LongRefFromWasmAbi for JsSubtreePolicies
Source§type Anchor = RcRef<JsSubtreePolicies>
type Anchor = RcRef<JsSubtreePolicies>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsSubtreePolicies as LongRefFromWasmAbi>::Abi,
) -> <JsSubtreePolicies as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsSubtreePolicies as LongRefFromWasmAbi>::Abi, ) -> <JsSubtreePolicies as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsSubtreePolicies
impl OptionFromWasmAbi for JsSubtreePolicies
Source§fn is_none(abi: &<JsSubtreePolicies as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsSubtreePolicies as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None
, and otherwise it will be passed to
FromWasmAbi
.Source§impl OptionIntoWasmAbi for JsSubtreePolicies
impl OptionIntoWasmAbi for JsSubtreePolicies
Source§fn none() -> <JsSubtreePolicies as IntoWasmAbi>::Abi
fn none() -> <JsSubtreePolicies as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None
branch of this option. Read moreSource§impl RefFromWasmAbi for JsSubtreePolicies
impl RefFromWasmAbi for JsSubtreePolicies
Source§type Anchor = RcRef<JsSubtreePolicies>
type Anchor = RcRef<JsSubtreePolicies>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§unsafe fn ref_from_abi(
js: <JsSubtreePolicies as RefFromWasmAbi>::Abi,
) -> <JsSubtreePolicies as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsSubtreePolicies as RefFromWasmAbi>::Abi, ) -> <JsSubtreePolicies as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsSubtreePolicies
impl RefMutFromWasmAbi for JsSubtreePolicies
Source§type Anchor = RcRefMut<JsSubtreePolicies>
type Anchor = RcRefMut<JsSubtreePolicies>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsSubtreePolicies as RefMutFromWasmAbi>::Abi,
) -> <JsSubtreePolicies as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsSubtreePolicies as RefMutFromWasmAbi>::Abi, ) -> <JsSubtreePolicies as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsSubtreePolicies
impl TryFromJsValue for JsSubtreePolicies
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsSubtreePolicies, <JsSubtreePolicies as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsSubtreePolicies, <JsSubtreePolicies as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsSubtreePolicies
impl VectorFromWasmAbi for JsSubtreePolicies
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsSubtreePolicies as VectorFromWasmAbi>::Abi, ) -> Box<[JsSubtreePolicies]>
Source§impl VectorIntoWasmAbi for JsSubtreePolicies
impl VectorIntoWasmAbi for JsSubtreePolicies
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsSubtreePolicies]>, ) -> <JsSubtreePolicies as VectorIntoWasmAbi>::Abi
Source§impl Wraps<SubtreePolicies> for JsSubtreePolicies
impl Wraps<SubtreePolicies> for JsSubtreePolicies
Source§fn inner(&self) -> &SubtreePolicies
fn inner(&self) -> &SubtreePolicies
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations§
impl Freeze for JsSubtreePolicies
impl RefUnwindSafe for JsSubtreePolicies
impl Send for JsSubtreePolicies
impl Sync for JsSubtreePolicies
impl Unpin for JsSubtreePolicies
impl UnwindSafe for JsSubtreePolicies
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.