pub struct StudioCreateDBCTransactionRequestBody {
pub anti_sniping: bool,
pub build_curve_by_market_cap_param: StudioCreateDBCTransactionRequestBodyBuildCurveByMarketCapParam,
pub creator: String,
pub fee: StudioCreateDBCTransactionRequestBodyFee,
pub is_lp_locked: Option<bool>,
pub token_image_content_type: StudioCreateDBCTransactionRequestBodyTokenImageContentType,
pub token_name: String,
pub token_symbol: String,
}Fields§
§anti_sniping: bool- Enable anti-sniping protection
- Apply an additional swap fee immediately after launch to discourage bots
- Starts at 99% and decreases 1% linearly over a randomized period
build_curve_by_market_cap_param: StudioCreateDBCTransactionRequestBodyBuildCurveByMarketCapParam§creator: String- Creator wallet public key
fee: StudioCreateDBCTransactionRequestBodyFee- Fee configuration parameters
- If not provided, the default fee will be 100 basis points (1%)
is_lp_locked: Option<bool>- Whether LP tokens should be locked
- If enabled, 50% of graduated LP unlocks after 1 year
- Useful for creators to strategize in the long term
token_image_content_type: StudioCreateDBCTransactionRequestBodyTokenImageContentType- Token image content type
token_name: StringConstraint: minLength=1
token_symbol: StringConstraint: minLength=1
Implementations§
Source§impl StudioCreateDBCTransactionRequestBody
impl StudioCreateDBCTransactionRequestBody
Sourcepub fn new(
anti_sniping: bool,
build_curve_by_market_cap_param: StudioCreateDBCTransactionRequestBodyBuildCurveByMarketCapParam,
creator: String,
fee: StudioCreateDBCTransactionRequestBodyFee,
token_image_content_type: StudioCreateDBCTransactionRequestBodyTokenImageContentType,
token_name: String,
token_symbol: String,
) -> Self
pub fn new( anti_sniping: bool, build_curve_by_market_cap_param: StudioCreateDBCTransactionRequestBodyBuildCurveByMarketCapParam, creator: String, fee: StudioCreateDBCTransactionRequestBodyFee, token_image_content_type: StudioCreateDBCTransactionRequestBodyTokenImageContentType, token_name: String, token_symbol: String, ) -> Self
Construct this request with every required wire field.
Sourcepub fn builder(
anti_sniping: bool,
build_curve_by_market_cap_param: StudioCreateDBCTransactionRequestBodyBuildCurveByMarketCapParam,
creator: String,
fee: StudioCreateDBCTransactionRequestBodyFee,
token_image_content_type: StudioCreateDBCTransactionRequestBodyTokenImageContentType,
token_name: String,
token_symbol: String,
) -> StudioCreateDBCTransactionRequestBodyBuilder
pub fn builder( anti_sniping: bool, build_curve_by_market_cap_param: StudioCreateDBCTransactionRequestBodyBuildCurveByMarketCapParam, creator: String, fee: StudioCreateDBCTransactionRequestBodyFee, token_image_content_type: StudioCreateDBCTransactionRequestBodyTokenImageContentType, token_name: String, token_symbol: String, ) -> StudioCreateDBCTransactionRequestBodyBuilder
Start a dependency-free builder with every required wire field.
Trait Implementations§
Source§impl Clone for StudioCreateDBCTransactionRequestBody
impl Clone for StudioCreateDBCTransactionRequestBody
Source§fn clone(&self) -> StudioCreateDBCTransactionRequestBody
fn clone(&self) -> StudioCreateDBCTransactionRequestBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for StudioCreateDBCTransactionRequestBody
impl<'de> Deserialize<'de> for StudioCreateDBCTransactionRequestBody
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
Auto Trait Implementations§
impl Freeze for StudioCreateDBCTransactionRequestBody
impl RefUnwindSafe for StudioCreateDBCTransactionRequestBody
impl Send for StudioCreateDBCTransactionRequestBody
impl Sync for StudioCreateDBCTransactionRequestBody
impl Unpin for StudioCreateDBCTransactionRequestBody
impl UnsafeUnpin for StudioCreateDBCTransactionRequestBody
impl UnwindSafe for StudioCreateDBCTransactionRequestBody
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