pub struct UdtDep {
pub cell_dep: Option<UdtCellDep>,
pub type_id: Option<Script>,
}Expand description
UDT dependency (either cell dep or type ID).
Fields§
§cell_dep: Option<UdtCellDep>Cell dependency (if using direct reference)
type_id: Option<Script>Type ID script (if using type ID reference)
Implementations§
Source§impl UdtDep
impl UdtDep
Sourcepub fn with_cell_dep(cell_dep: UdtCellDep) -> Self
pub fn with_cell_dep(cell_dep: UdtCellDep) -> Self
Create a UdtDep with a cell dependency.
Sourcepub fn with_type_id(type_id: Script) -> Self
pub fn with_type_id(type_id: Script) -> Self
Create a UdtDep with a type ID script.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UdtDep
impl<'de> Deserialize<'de> for UdtDep
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
impl Eq for UdtDep
impl StructuralPartialEq for UdtDep
Auto Trait Implementations§
impl !Freeze for UdtDep
impl RefUnwindSafe for UdtDep
impl Send for UdtDep
impl Sync for UdtDep
impl Unpin for UdtDep
impl UnsafeUnpin for UdtDep
impl UnwindSafe for UdtDep
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