pub struct FigmaClient { /* private fields */ }Implementations§
Source§impl FigmaClient
impl FigmaClient
pub fn new(token: String) -> Result<Self>
pub async fn get_file(&self, file_id: &str, depth: Option<u32>) -> Result<Value>
pub async fn get_file_nodes( &self, file_id: &str, node_ids: &[String], depth: Option<u32>, ) -> Result<Value>
pub async fn export_images( &self, file_id: &str, node_ids: &[String], format: &str, scale: Option<f64>, ) -> Result<Value>
pub async fn get_me(&self) -> Result<Value>
pub fn get_token(&self) -> &str
Trait Implementations§
Source§impl Clone for FigmaClient
impl Clone for FigmaClient
Source§fn clone(&self) -> FigmaClient
fn clone(&self) -> FigmaClient
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 moreAuto Trait Implementations§
impl Freeze for FigmaClient
impl !RefUnwindSafe for FigmaClient
impl Send for FigmaClient
impl Sync for FigmaClient
impl Unpin for FigmaClient
impl UnsafeUnpin for FigmaClient
impl !UnwindSafe for FigmaClient
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