pub struct PostNew {
pub post: Pubkey,
pub profile: Pubkey,
pub user: Pubkey,
pub random_hash: [u8; 32],
pub metadata_uri: String,
pub timestamp: i64,
}
Fields§
§post: Pubkey
§profile: Pubkey
§user: Pubkey
§random_hash: [u8; 32]
§metadata_uri: String
§timestamp: i64
Trait Implementations§
Source§impl BorshDeserialize for PostNewwhere
Pubkey: BorshDeserialize,
[u8; 32]: BorshDeserialize,
String: BorshDeserialize,
i64: BorshDeserialize,
impl BorshDeserialize for PostNewwhere
Pubkey: BorshDeserialize,
[u8; 32]: BorshDeserialize,
String: BorshDeserialize,
i64: BorshDeserialize,
Source§impl BorshSerialize for PostNewwhere
Pubkey: BorshSerialize,
[u8; 32]: BorshSerialize,
String: BorshSerialize,
i64: BorshSerialize,
impl BorshSerialize for PostNewwhere
Pubkey: BorshSerialize,
[u8; 32]: BorshSerialize,
String: BorshSerialize,
i64: BorshSerialize,
Source§impl Discriminator for PostNew
impl Discriminator for PostNew
const DISCRIMINATOR: [u8; 8]
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl Freeze for PostNew
impl RefUnwindSafe for PostNew
impl Send for PostNew
impl Sync for PostNew
impl Unpin for PostNew
impl UnwindSafe for PostNew
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more