INNER CODE UNIT · Rust

from

0xfnzero/pumpfun-sdk · src/error/mod.rs:180

    fn from(error: ParsePubkeyError) -> Self {
        ClientError::Pubkey(
            "Pubkey error".to_string(),
            error.to_string(),
        )
    }
}

impl From<Error> for ClientError {
    fn from(err: Error) -> Self {
        ClientError::Parse(
            "JSON serialization error".to_string(),
            err.to_string()
        )
    }
}

pub type ClientResult<T> = Result<T, ClientError>;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…