HivePaaS
Docker Swarm 기반 오픈소스 자체 호스팅 PaaS, SSL·백업·자동 확장 지원
시스템 프로그래밍 및 WebAssembly용 공식 Linkbreakers Rust SDK
The official Linkbreakers Rust SDK for systems programming and WebAssembly applications. Memory-safe with async/await support via Tokio and zero-cost abstractions.
개발 도구Rust · MustacheGitHub @linkbreakers-com온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Official Rust SDK for the Linkbreakers API: create dynamic QR codes and short links, and read scan analytics.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Official Rust SDK for the Linkbreakers API, auto-generated from OpenAPI specification.
Add this to your Cargo.toml:
[dependencies]
linkbreakers = "1"
tokio = { version = "1", features = ["full"] }
use linkbreakers::{apis::configuration::Configuration, apis::links_api, models::CreateLinkRequest};
#[tokio::main]
async fn main() {
// Create configuration with authentication
let mut config = Configuration::new();
config.bearer_access_token = Some("your-api-token".to_string());
// Create a shortened link
let mut request = CreateLinkRequest::new("https://example.com".to_string());
request.name = Some("My Link".to_string());
match links_api::links_service_create(&config, request, None).await {
Ok(response) => {
let shortlink = response.link.and_then(|link| link.shortlink).unwrap_or_default();
println!("Short link: {}", shortlink);
}
Err(e) => eprintln!("Error: {:?}", e),
}
// List links: page_size, then the optional page_token, include, tags,
// search, sort_by, sort_direction, view, directory_id and cursor
match links_api::links_service_list(&config, 10, None, None, None, None, None, None, None, None, None).await {
Ok(response) => {
println!("Found {} links", response.links.unwrap_or_default().len());
}
Err(e) => eprintln!("Error: {:?}", e),
}
}
Each API is a module under linkbreakers::apis (links_api, visitors_api, ...) and each operation is a function named after the API's operation ID (links_service_create, links_service_list, visitors_service_identify, ...). It takes the configuration, then the path parameters, request body and query parameters in order, with optional ones as Option.
use linkbreakers::{apis::configuration::Configuration, apis::links_api};
fn main() {
// Create configuration with authentication
let mut config = Configuration::new();
config.bearer_access_token = Some("your-api-token".to_string());
// Example: List links (blocking)
let runtime = tokio::runtime::Runtime::new().unwrap();
let result = runtime.block_on(async {
links_api::links_service_list(&config, 10, None, None, None, None, None, None, None, None, None).await
});
match result {
Ok(response) => {
println!("Found {} links", response.links.unwrap_or_default().len());
}
Err(e) => eprintln!("Error: {:?}", e),
}
}
The SDK supports Bearer token authentication:
use linkbreakers::apis::configuration::Configuration;
let mut config = Configuration::new();
config.bearer_access_token = Some("your-api-token".to_string());
// Use config with API calls
For detailed API documentation, visit: https://docs.linkbreakers.com
For Rust-specific docs, run: cargo doc --open
This SDK is automatically generated from the Linkbreakers OpenAPI specification and published when the API is updated. This README is written by hand: scripts/check-docs.sh compiles every Rust block in it against the generated code, on pull requests and before every release.
Current API version: See OPENAPI_VERSION
Report issues at: https://github.com/linkbreakers-com/linkbreakers-rust/issues
MIT License