pub struct Script {
pub data: Vec<u8>,
}Fields§
§data: Vec<u8>Implementations§
Source§impl Script
impl Script
pub fn decrypt_data(self, cipher: &mut dyn MapleCipher) -> Vec<u8> ⓘ
pub fn decrypt_to_string( self, cipher: &mut dyn MapleCipher, ) -> Result<String, FromUtf8Error>
Trait Implementations§
Source§impl<'a> TryFrom<&'a EntryCache> for Script
impl<'a> TryFrom<&'a EntryCache> for Script
Source§impl TryFromAccessor for Script
impl TryFromAccessor for Script
Auto Trait Implementations§
impl Freeze for Script
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnsafeUnpin for Script
impl UnwindSafe for Script
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> FromAccessor for T
impl<T> FromAccessor for T
fn from_accessor(opt: AccessorOpt, accessor: &mut dyn Accessor) -> T
Source§impl<T> FromBuilder for T
impl<T> FromBuilder for T
fn from_builder(opt: AccessorOpt, builder: &dyn AccessorBuilder) -> T
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