pub fn new_instruction_remove_reference(
        &self,
        admin_address: &Pubkey,
        storage_type: refdb::StorageType,
        object_name: &str,
        refdb_index: Option<usize>,
    ) -> Result<Instruction, FarmClientError> {
        self.new_instruction_refdb_delete(
            admin_address,
            &storage_type.to_string(),
            refdb::Record {
                index: refdb_index.map(|idx| idx as u32),
                counter: 0,
                tag: 0,
                name: str_to_as64(object_name)?,
                reference: refdb::Reference::Empty,
            },
        )
    }
/// Creates a new Instruction for removing the object reference from chain
Creates a new Instruction for removing the object reference from chain
Creates a new Instruction for removing the object reference from chain
pub fn new_instruction_remove_reference(
        &self,
        admin_address: &Pubkey,
        storage_type: refdb::StorageType,
        object_name: &str,
        refdb_index: Option<usize>,
    ) -> Result<Instruction, FarmClientError> {
        self.new_instruction_refdb_delete(
            admin_address,
            &storage_type.to_string(),
            refdb::Record {
                index: refdb_index.map(|idx| idx as u32),
                counter: 0,
                tag: 0,
                name: str_to_as64(object_name)?,
                reference: refdb::Reference::Empty,
            },
        )
    }
pub fn new_instruction_remove_reference ( & self , admin_address : & Pubkey , storage_type : refdb :: StorageType , object_name : & str , refdb_index : Option < usize > , ) -> Result < Instruction , FarmClientError > { self . new_instruction_refdb_delete ( admin_address , & storage_type . to_string ( ) , refdb :: Record { index : refdb_index . map ( | idx | idx as u32 ) , counter : 0 , tag : 0 , name : str_to_as64 ( object_name ) ? , reference : refdb :: Reference :: Empty , } , ) }
Creates a new Instruction for removing the object reference from chain
Creates a new Instruction for removing the object reference from chain
&self
admin_address
&Pubkey
storage_type
refdb::StorageType
object_name
&str
refdb_index
Option<usize>
&self
admin_address
&Pubkey
storage_type
refdb::StorageType
object_name
&str
refdb_index
Option<usize>