pub struct Locker {
pub owner: Option<String>,
pub program_id: Option<String>,
pub token_account: Option<String>,
pub locker_type: Option<String>,
pub unlock_date: Option<i64>,
pub uri: Option<String>,
pub usdc_locked: Option<f64>,
}Expand description
Token locker information
Fields§
§owner: Option<String>Locker owner
program_id: Option<String>Program ID
token_account: Option<String>Token account
locker_type: Option<String>Locker type
unlock_date: Option<i64>Unlock date timestamp
uri: Option<String>Locker URI
usdc_locked: Option<f64>USDC value locked
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Locker
impl<'de> Deserialize<'de> for Locker
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
Source§impl JsonSchema for Locker
impl JsonSchema for Locker
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Locker
impl RefUnwindSafe for Locker
impl Send for Locker
impl Sync for Locker
impl Unpin for Locker
impl UnwindSafe for Locker
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