pub struct LinkedinFile {
pub text: String,
pub link: Option<String>,
pub created_at: String,
pub source_path: Option<PathBuf>,
}Expand description
The JSON file written to the LinkedIn store directory.
Each .linkedin file corresponds to one staged post. crate::Post reads
these files and publishes them via the LinkedIn API.
Fields§
§text: StringText of the LinkedIn post.
link: Option<String>Optional URL appended to the post (derived from base_url + slug).
created_at: StringISO date the draft was created (YYYY-MM-DD).
source_path: Option<PathBuf>Absolute path to the source markdown file (used for published
write-back).
Trait Implementations§
Source§impl Clone for LinkedinFile
impl Clone for LinkedinFile
Source§impl Debug for LinkedinFile
impl Debug for LinkedinFile
Source§impl<'de> Deserialize<'de> for LinkedinFile
impl<'de> Deserialize<'de> for LinkedinFile
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 Forget for LinkedinFile
impl Freeze for LinkedinFile
impl Move for LinkedinFile
impl RefUnwindSafe for LinkedinFile
impl Send for LinkedinFile
impl Sync for LinkedinFile
impl Unpin for LinkedinFile
impl UnsafeUnpin for LinkedinFile
impl UnwindSafe for LinkedinFile
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