pub struct RenderId(/* private fields */);
Implementations§
Source§impl RenderId
impl RenderId
Sourcepub fn new<T: Into<String>>(id: T) -> Result<Self>
pub fn new<T: Into<String>>(id: T) -> Result<Self>
Create a new render_id struct.
§Example
use std::env;
use carbone_sdk_rust::render::RenderId;
use carbone_sdk_rust::errors::CarboneError;
fn main() -> Result<(), CarboneError> {
let render_id = RenderId::new("MTAuMjAuMjEuMTAgICAg01E98H4R7PMC2H6XSE5Z6J8XYQ.odt".to_string())?;
assert_eq!(render_id.as_str().is_empty(), false);
Ok(())
}
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RenderId
impl<'de> Deserialize<'de> for RenderId
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
impl Eq for RenderId
impl StructuralPartialEq for RenderId
Auto Trait Implementations§
impl Freeze for RenderId
impl RefUnwindSafe for RenderId
impl Send for RenderId
impl Sync for RenderId
impl Unpin for RenderId
impl UnwindSafe for RenderId
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.